PyDocs

Nav

Python Runtime Services

call_evaluate_function

annotationlib

function · Added in 3.14 (source)
  • call_evaluate_function(evaluate, format, *, owner=None)
Call an evaluate function. Evaluate functions are normally generated for
the value of type aliases and the bounds, constraints, and defaults of
type parameter objects.
1 Example
>>> type Alias = undefined
>>> call_evaluate_function(Alias.evaluate_value, Format.VALUE)
Traceback (most recent call last):
...
NameError: name 'undefined' is not defined
>>> call_evaluate_function(Alias.evaluate_value, Format.FORWARDREF)
ForwardRef('undefined')
>>> call_evaluate_function(Alias.evaluate_value, Format.STRING)
'undefined'
from the Python docs
See Also
No see-alsos for annotationlib/call_evaluate_function
0 Notes
No notes for call_evaluate_function