Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor formatting nits
  • Loading branch information
Fidget-Spinner committed Oct 27, 2020
commit 879365382b0b9d3968abb73f42fb0a9aff581977
4 changes: 2 additions & 2 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,7 @@ class instead. The classmethod :meth:`__class_getitem__` should return a
.. note::
If the :meth:`__getitem__` of the class' metaclass is present, it will take
precedence over the :meth:`__class_getitem__` defined in the class (see
:pep:`560` for more details) ::
:pep:`560` for more details)::

>>> class M(type):
... def __getitem__(self, key):
Expand Down Expand Up @@ -4946,7 +4946,7 @@ All parameterized generics implement special read-only attributes.
variables found in ``__args__``::

>>> from typing import TypeVar
>>>

>>> T = TypeVar('T')
>>> list[T].__parameters__
(~T,)
Expand Down