Skip to content

Commit

Permalink
Modernize code example in docs/guides/writing_stubs.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Rittau <[email protected]>
  • Loading branch information
rchen152 and srittau authored Jul 23, 2024
1 parent 4c7fee2 commit 60d80d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/writing_stubs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,12 @@ with an underscore.
Yes::

_T = TypeVar("_T")
_DictList = Dict[str, List[Optional[int]]
_DictList: TypeAlias = dict[str, list[int | None]]

No::

T = TypeVar("T")
DictList = Dict[str, List[Optional[int]]]
DictList: TypeAlias = dict[str, list[int | None]]

Language Features
-----------------
Expand Down

0 comments on commit 60d80d8

Please sign in to comment.