mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 23:43:46 +08:00
Add TypedDict.__{readonly,mutable}_keys__ (#13646)
This commit is contained in:
1 parent
5cd606b5ed
commit
52202f42a6
1 file changed
+3
@@ -950,6 +950,9 @@ class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
|
||||
# so we only add it to the stub on 3.12+
|
||||
if sys.version_info >= (3, 12):
|
||||
__orig_bases__: ClassVar[tuple[Any, ...]]
|
||||
if sys.version_info >= (3, 13):
|
||||
__readonly_keys__: ClassVar[frozenset[str]]
|
||||
__mutable_keys__: ClassVar[frozenset[str]]
|
||||
|
||||
def copy(self) -> typing_extensions.Self: ...
|
||||
# Using Never so that only calls using mypy plugin hook that specialize the signature
|
||||
|
||||
Reference in new issue
Block a user