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

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Alex WaygoodandAkuli authored and GitHub committed 2022-01-16 14:23:22 +02:00
1 parent e53aa04eb2
commit af8e37d273
2 files changed
+2 -2

No files matched your search

+1 -1
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.
+1 -1
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.