On this page
annotationlib.call_evaluate_function
Prev: annotationlib.call_annotate_function | Up: annotationlib | Next: annotationlib.Format
Rel: annotationlib.annotations_to_string, annotationlib.call_annotate_function, annotationlib.Format, annotationlib.ForwardRef
Ref: docs.python.org — annotationlib.call_evaluate_function
Tags: #public #python3 #stdlib #annotationlib
Import
import annotationlib
from annotationlib import call_evaluate_function
Signature & Overview
annotationlib.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.
Usage
import annotationlib
# Python 3.14+: invokes PEP 649 evaluate functions (e.g. TypeAliasType.evaluate_value)
assert callable(annotationlib.call_evaluate_function)
Gotchas
- Requires Python 3.14+: Evaluates deferred typing expressions under a chosen
Format.
REPL Inspect
from annotationlib import call_evaluate_function
help(call_evaluate_function)
Linked from
- tuts/python3/stdlib_module/annotationlib
- tuts/python3/stdlib_module/annotationlib/annotations_to_string
- tuts/python3/stdlib_module/annotationlib/call_annotate_function
- tuts/python3/stdlib_module/annotationlib/Format
- tuts/python3/stdlib_module/annotationlib/ForwardRef
- tuts/python3/stdlib_module/annotationlib/get_annotate_from_class_namespace
- tuts/python3/stdlib_module/annotationlib/get_annotations
- tuts/python3/stdlib_module/annotationlib/type_repr
Related notes
- tuts/python3/stdlib_module/annotationlib/annotations_to_string Linked here; links to this page; shared tags: #annotationlib, #stdlib
- tuts/python3/stdlib_module/annotationlib/call_annotate_function Linked here; links to this page; shared tags: #annotationlib, #stdlib
- tuts/python3/stdlib_module/annotationlib/Format Linked here; links to this page; shared tags: #annotationlib, #stdlib
- tuts/python3/stdlib_module/annotationlib/ForwardRef Linked here; links to this page; shared tags: #annotationlib, #stdlib
- tuts/python3/stdlib_module/annotationlib Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/annotationlib/get_annotate_from_class_namespace links to this page; shared tags: #annotationlib, #stdlib
- tuts/python3/stdlib_module/annotationlib/get_annotations links to this page; shared tags: #annotationlib, #stdlib
- tuts/python3/stdlib_module/annotationlib/type_repr links to this page; shared tags: #annotationlib, #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib