File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ Module contents
437437 By default, it is set to the module name of the caller.
438438
439439 This function is not strictly required, because any Python
440- mechanism for creating a new class with :attr: `~object. __annotations__ ` can
440+ mechanism for creating a new class with :attr: `! __annotations__ ` can
441441 then apply the :deco: `dataclass ` function to convert that class to
442442 a dataclass. This function is provided as a convenience. For
443443 example::
Original file line number Diff line number Diff line change @@ -1080,7 +1080,7 @@ Function Annotations
10801080information about the types used by user-defined functions (see :pep: `3107 ` and
10811081:pep: `484 ` for more information).
10821082
1083- :term: `Annotations <function annotation> ` are stored in the :attr: `~object. __annotations__ `
1083+ :term: `Annotations <function annotation> ` are stored in the :attr: `! __annotations__ `
10841084attribute of the function as a dictionary and have no effect on any other part of the
10851085function. Parameter annotations are defined by a colon after the parameter name, followed
10861086by an expression evaluating to the value of the annotation. Return annotations are
You can’t perform that action at this time.
0 commit comments