Skip to content

Commit f6fe897

Browse files
committed
fix review idea
Signed-off-by: Manjusaka <me@manjusaka.me>
1 parent 7cddaca commit f6fe897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/annotationlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Supporting annotations in custom objects
448448
-------------------------------------------
449449

450450
Objects can support annotation introspection by implementing the :attr:`~object.__annotate__`
451-
protocol. When an object provides an :attr:`!__annotate__` attribute, :func:`get_annotations`
451+
protocol. When an object's class provides an :attr:`!__annotate__` descriptor, :func:`get_annotations`
452452
will call it to retrieve the annotations for that object. The :attr:`!__annotate__` function
453453
should accept a single argument, a member of the :class:`Format` enum, and return a dictionary
454454
mapping annotation names to their values in the requested format.

0 commit comments

Comments
 (0)