Skip to content

Commit 95e7fcb

Browse files
authored
Fix stubtest's tests to work with the latest typing_extensions release (#16588)
Stubtest's tests will start failing when `typing_extensions==4.9.0` comes out, due to some new `ClassVar`s on `typing_extensions.TypedDict`. This PR fixes that. Fixes python/typing_extensions#309
1 parent 69b3144 commit 95e7fcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test-data/unit/lib-stub/typing_extensions.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class _TypedDict(Mapping[str, object]):
5959
# Stubtest's tests need the following items:
6060
__required_keys__: frozenset[str]
6161
__optional_keys__: frozenset[str]
62+
__readonly_keys__: frozenset[str]
63+
__mutable_keys__: frozenset[str]
6264
__total__: bool
6365

6466
def TypedDict(typename: str, fields: Dict[str, Type[_T]], *, total: Any = ...) -> Type[dict]: ...

0 commit comments

Comments
 (0)