Skip to content

Commit

Permalink
Update docs/source/generics.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored May 24, 2024
1 parent bf5c240 commit ad02340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ For class methods, you can also define generic ``cls``, using :py:class:`type`:
other: Optional["Friend"] = None
@classmethod
def make_pair(cls: Type[T]) -> tuple[T, T]:
def make_pair(cls: type[T]) -> tuple[T, T]:
a, b = cls(), cls()
a.other = b
b.other = a
Expand Down

0 comments on commit ad02340

Please sign in to comment.