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
Remove sentence in AnyStr docs
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
michael-the1 and AlexWaygood authored Jul 30, 2023
commit 2cb6a5fe9877e1a2d73ca8a1d6e7fff839e2bbea
3 changes: 1 addition & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,7 @@ using ``[]``.
Note that, despite its name, ``AnyStr`` has nothing to do with the
:class:`Any` type, nor does it mean "any string". In particular, ``AnyStr``
and ``str | bytes`` are different from each other and have different use
cases. If ``AnyStr`` is not part of the input arguments it should not be
used::
cases::

# Invalid use of AnyStr:
# The type variable is used only once in the function signature,
Expand Down