We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cddaca commit f6fe897Copy full SHA for f6fe897
Doc/library/annotationlib.rst
@@ -448,7 +448,7 @@ Supporting annotations in custom objects
448
-------------------------------------------
449
450
Objects can support annotation introspection by implementing the :attr:`~object.__annotate__`
451
-protocol. When an object provides an :attr:`!__annotate__` attribute, :func:`get_annotations`
+protocol. When an object's class provides an :attr:`!__annotate__` descriptor, :func:`get_annotations`
452
will call it to retrieve the annotations for that object. The :attr:`!__annotate__` function
453
should accept a single argument, a member of the :class:`Format` enum, and return a dictionary
454
mapping annotation names to their values in the requested format.
0 commit comments