Skip to content

Commit e55a31d

Browse files
committed
Revert typing changes
1 parent 70d6ded commit e55a31d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/typing.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,16 +1916,16 @@ def _allow_reckless_class_checks(depth=2):
19161916
return _caller(depth) in {'abc', '_py_abc', 'functools', None}
19171917

19181918

1919-
_PROTO_ALLOWLIST = frozendict({
1920-
'collections.abc': (
1919+
_PROTO_ALLOWLIST = {
1920+
'collections.abc': [
19211921
'Callable', 'Awaitable', 'Iterable', 'Iterator', 'AsyncIterable',
19221922
'AsyncIterator', 'Hashable', 'Sized', 'Container', 'Collection',
19231923
'Reversible', 'Buffer',
1924-
),
1925-
'contextlib': ('AbstractContextManager', 'AbstractAsyncContextManager'),
1926-
'io': ('Reader', 'Writer'),
1927-
'os': ('PathLike',),
1928-
})
1924+
],
1925+
'contextlib': ['AbstractContextManager', 'AbstractAsyncContextManager'],
1926+
'io': ['Reader', 'Writer'],
1927+
'os': ['PathLike'],
1928+
}
19291929

19301930

19311931
@functools.cache

0 commit comments

Comments
 (0)