PyDocs

Nav

Python Runtime Services

object.__annotations__

builtins

attribute of object
This attribute contains the annotations for an object. It is lazily evaluated, so accessing the attribute may execute arbitrary code and raise exceptions. If evaluation is successful, the attribute is set to a dictionary mapping from variable names to annotations.
Changed in 3.14
  • 3.14: Annotations are now lazily evaluated.
0 Examples
No examples for builtins/object.__annotations__.
See Also
No see-alsos for builtins/object.__annotations__
0 Notes
No notes for object.__annotations__