From c0ecd70e6ff9e92ee686671c7e0f152ab643f25e Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Fri, 27 Sep 2024 12:42:16 -0400 Subject: [PATCH] Cut unused typing names --- pylint/checkers/variables.py | 57 ------------------------------------ 1 file changed, 57 deletions(-) diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index e1467b2ef2..a996dc3277 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -54,63 +54,6 @@ METACLASS_NAME_TRANSFORMS = {"_py_abc": "abc"} BUILTIN_RANGE = "builtins.range" TYPING_MODULE = "typing" -TYPING_NAMES = frozenset( - { - "Any", - "Callable", - "ClassVar", - "Generic", - "Optional", - "Tuple", - "Type", - "TypeVar", - "Union", - "AbstractSet", - "ByteString", - "Container", - "ContextManager", - "Hashable", - "ItemsView", - "Iterable", - "Iterator", - "KeysView", - "Mapping", - "MappingView", - "MutableMapping", - "MutableSequence", - "MutableSet", - "Sequence", - "Sized", - "ValuesView", - "Awaitable", - "AsyncIterator", - "AsyncIterable", - "Coroutine", - "Collection", - "AsyncGenerator", - "AsyncContextManager", - "Reversible", - "SupportsAbs", - "SupportsBytes", - "SupportsComplex", - "SupportsFloat", - "SupportsInt", - "SupportsRound", - "Counter", - "Deque", - "Dict", - "DefaultDict", - "List", - "Set", - "FrozenSet", - "NamedTuple", - "Generator", - "AnyStr", - "Text", - "Pattern", - "BinaryIO", - } -) DICT_TYPES = ( astroid.objects.DictValues,