Visitar URL original
[doc] Leverage the fact that the actual types can now be indexed for typing by andresdelfino · Pull Request #22340 · python/cpython · GitHub
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
Restore order
  • Loading branch information
andresdelfino committed Sep 21, 2020
commit fa7bbeda9c7f143d79558feaec6453a9310a75c2
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ to be explicitly marked to support them, which is unpythonic and unlike
what one would normally do in idiomatic dynamically typed Python code.
For example, this conforms to the :pep:`484`::

from collections.abc import Iterable, Iterator, Sized
from collections.abc import Sized, Iterable, Iterator

class Bucket(Sized, Iterable[int]):
...
Expand Down