From af8e37d2736d3a6fbed8f5dfad71580dd417c612 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 16 Jan 2022 12:23:22 +0000 Subject: [PATCH] Add `# noqa` comments to `typing.AnyStr` (#6925) Co-authored-by: Akuli --- stdlib/@python2/typing.pyi | 2 +- stdlib/typing.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/@python2/typing.pyi b/stdlib/@python2/typing.pyi index a1b02e819..b50965bba 100644 --- a/stdlib/@python2/typing.pyi +++ b/stdlib/@python2/typing.pyi @@ -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. diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index 1ec9ba720..4e08d3e1a 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -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.