Skip to content

Commit 9dacf43

Browse files
authored
Remove unused _allowed_types from typing.py (#124090)
1 parent 1de4613 commit 9dacf43

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Lib/typing.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import operator
3030
import sys
3131
import types
32-
from types import WrapperDescriptorType, MethodWrapperType, MethodDescriptorType, GenericAlias
32+
from types import GenericAlias
3333

3434
from _typing import (
3535
_idfunc,
@@ -2352,11 +2352,6 @@ def greet(name: str) -> None:
23522352
return val
23532353

23542354

2355-
_allowed_types = (types.FunctionType, types.BuiltinFunctionType,
2356-
types.MethodType, types.ModuleType,
2357-
WrapperDescriptorType, MethodWrapperType, MethodDescriptorType)
2358-
2359-
23602355
def get_type_hints(obj, globalns=None, localns=None, include_extras=False,
23612356
*, format=annotationlib.Format.VALUE):
23622357
"""Return type hints for an object.

0 commit comments

Comments
 (0)