A dictionary containing variable annotations collected during class body execution. See also: __annotations__ attributes. For best practices on working with __annotations__, please see annotationlib. Use annotationlib.get_annotations() instead of accessing this attribute directly. Warning Accessing the __annotations__ attribute directly on a class object may return annotations for the wrong class, specifically in certain cases where the class, its base class, or a metaclass is defined under from __future__ import annotations. See 749 for details. This attribute does not exist on certain builtin classes. On user-defined classes without __annotations__, it is an empty dictionary. Changed in version 3.14: Annotations are now lazily evaluated. See PEP 649.