Skip to content

Commit a7af8a7

Browse files
committed
Convert typing._PROTO_ALLOWLIST values to tuple
1 parent 300cf8f commit a7af8a7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/typing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,14 +1917,14 @@ def _allow_reckless_class_checks(depth=2):
19171917

19181918

19191919
_PROTO_ALLOWLIST = frozendict({
1920-
'collections.abc': [
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'],
1924+
),
1925+
'contextlib': ('AbstractContextManager', 'AbstractAsyncContextManager'),
1926+
'io': ('Reader', 'Writer'),
1927+
'os': ('PathLike',),
19281928
})
19291929

19301930

0 commit comments

Comments
 (0)