File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ Module contents
439439 function is used.
440440
441441 This function is not strictly required, because any Python
442- mechanism for creating a new class with :attr: `! __annotations__ ` can
442+ mechanism for creating a new class with :attr: `~object. __annotations__ ` can
443443 then apply the :func: `@dataclass <dataclass> ` function to convert that class to
444444 a dataclass. This function is provided as a convenience. For
445445 example::
Original file line number Diff line number Diff line change @@ -1081,7 +1081,7 @@ Function Annotations
10811081information about the types used by user-defined functions (see :pep: `3107 ` and
10821082:pep: `484 ` for more information).
10831083
1084- :term: `Annotations <function annotation> ` are stored in the :attr: `! __annotations__ `
1084+ :term: `Annotations <function annotation> ` are stored in the :attr: `~object. __annotations__ `
10851085attribute of the function as a dictionary and have no effect on any other part of the
10861086function. Parameter annotations are defined by a colon after the parameter name, followed
10871087by an expression evaluating to the value of the annotation. Return annotations are
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ Some smaller changes made to the core Python language are:
458458 :class: `~collections.defaultdict `, :class: `~shelve.Shelf `,
459459 :class: `~configparser.ConfigParser `, or :mod: `dbm `. It is also useful with
460460 custom :class: `dict ` subclasses that normalize keys before look-up or that
461- supply a :meth: `__missing__ ` method for unknown keys::
461+ supply a :meth: `~object. __missing__ ` method for unknown keys::
462462
463463 >>> import shelve
464464 >>> d = shelve.open('tmp.shl')
You can’t perform that action at this time.
0 commit comments