PyDocs

Python Runtime Services

annotationlib

Helpers for introspecting and wrapping annotations.
Symbols in annotationlib

a

annotations_to_string
Convert an annotation dict containing values to approximately the STRING format.

c

call_annotate_function
Call an __annotate__ function.
call_evaluate_function
Call an evaluate function.

f

Format
An IntEnum describing the formats in which annotations can be returned.
ForwardRef
Wrapper that holds a forward reference.

g

get_annotate_from_class_namespace
Retrieve the annotate function from a class namespace dictionary.
get_annotations
Compute the annotations dict for an object.

t

type_repr
Convert a Python value to a format suitable for use with the STRING format.