Remove a no-longer-needed # noqa (#9685)

This commit is contained in:
Alex Waygood
2023-02-07 00:43:53 +00:00
committed by GitHub
parent 29d9aa9b28
commit c4c4bee8aa

View File

@@ -1,6 +1,7 @@
import _typeshed
import collections # Needed by aliases like DefaultDict, see mypy issue 2986
import sys
import typing_extensions
from _collections_abc import dict_items, dict_keys, dict_values
from _typeshed import IdentityFunction, Incomplete, SupportsKeysAndGetItem
from abc import ABCMeta, abstractmethod
@@ -719,7 +720,7 @@ class ByteString(Sequence[int], metaclass=ABCMeta): ...
# Functions
_get_type_hints_obj_allowed_types = ( # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
_get_type_hints_obj_allowed_types: typing_extensions.TypeAlias = ( # noqa: Y042
object
| Callable[..., Any]
| FunctionType