Skip to content

Commit eb84794

Browse files
authored
FIx stubtest's tests to work with the latest version of typing_extensions (python#16928)
Stubtest's tests will start failing when `typing_extensions==4.10.0` comes out, due to some new `ClassVar`s on `typing_extensions.TypedDict`. This PR fixes that. Fixes python/typing_extensions#339. Note: there's no need to cherry-pick this to the `release-1.9.0` branch, since the daily workflow `typing_extensions` uses runs mypy's tests using the mypy `master` branch.
1 parent 17271e5 commit eb84794

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class _TypedDict(Mapping[str, object]):
6161
__optional_keys__: frozenset[str]
6262
__readonly_keys__: frozenset[str]
6363
__mutable_keys__: frozenset[str]
64+
__closed__: bool
65+
__extra_items__: Any
6466
__total__: bool
6567

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

0 commit comments

Comments
 (0)