Skip to content

Commit 52202f4

Browse files
authored
Add TypedDict.__{readonly,mutable}_keys__ (#13646)
1 parent 5cd606b commit 52202f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/typing.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,9 @@ class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
950950
# so we only add it to the stub on 3.12+
951951
if sys.version_info >= (3, 12):
952952
__orig_bases__: ClassVar[tuple[Any, ...]]
953+
if sys.version_info >= (3, 13):
954+
__readonly_keys__: ClassVar[frozenset[str]]
955+
__mutable_keys__: ClassVar[frozenset[str]]
953956

954957
def copy(self) -> typing_extensions.Self: ...
955958
# Using Never so that only calls using mypy plugin hook that specialize the signature

0 commit comments

Comments
 (0)