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
Disambiguate typing.Set and collections.abc.Set
  • Loading branch information
sterliakov committed Sep 3, 2024
commit e63c976a72cced7a5b00b47cf250b417e473ba28
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3425,7 +3425,7 @@ Aliases to built-in types

Note that to annotate arguments, it is preferred
to use an abstract collection type such as :class:`collections.abc.Set`
rather than to use :class:`set` or :class:`!typing.Set`.
rather than to use :class:`set` or :class:`typing.Set`.

.. deprecated:: 3.9
:class:`builtins.set <set>` now supports subscripting (``[]``).
Expand Down