diff options
author | sobolevn <mail@sobolevn.me> | 2024-09-14 13:14:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 13:14:45 (GMT) |
commit | 9dacf430c2f4af2acd870291a649b7b957efcd2c (patch) | |
tree | 6cb18e2d82f4651eb35850c3794acbf8538da1f4 /Lib/typing.py | |
parent | 1de46136b916736487019c2f78af2bf0cadd7ecd (diff) | |
download | cpython-9dacf430c2f4af2acd870291a649b7b957efcd2c.zip cpython-9dacf430c2f4af2acd870291a649b7b957efcd2c.tar.gz cpython-9dacf430c2f4af2acd870291a649b7b957efcd2c.tar.bz2 |
Remove unused `_allowed_types` from `typing.py` (#124090)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r-- | Lib/typing.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index bcb7bec..9377e77 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -29,7 +29,7 @@ import functools import operator import sys import types -from types import WrapperDescriptorType, MethodWrapperType, MethodDescriptorType, GenericAlias +from types import GenericAlias from _typing import ( _idfunc, @@ -2352,11 +2352,6 @@ def assert_type(val, typ, /): return val -_allowed_types = (types.FunctionType, types.BuiltinFunctionType, - types.MethodType, types.ModuleType, - WrapperDescriptorType, MethodWrapperType, MethodDescriptorType) - - def get_type_hints(obj, globalns=None, localns=None, include_extras=False, *, format=annotationlib.Format.VALUE): """Return type hints for an object. |