Add # noqa comments to typing.AnyStr (#6925)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Alex Waygood
2022-01-16 12:23:22 +00:00
committed by GitHub
parent e53aa04eb2
commit af8e37d273
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ Counter = _Alias()
Deque = _Alias()
# Predefined type variables.
AnyStr = TypeVar("AnyStr", str, unicode)
AnyStr = TypeVar("AnyStr", str, unicode) # noqa: Y001
# Abstract base classes.

View File

@@ -136,7 +136,7 @@ if sys.version_info >= (3, 9):
Annotated: _SpecialForm = ...
# Predefined type variables.
AnyStr = TypeVar("AnyStr", str, bytes)
AnyStr = TypeVar("AnyStr", str, bytes) # noqa: Y001
if sys.version_info >= (3, 8):
# This class did actually exist in 3.7, but had a different base.