Skip to content

Commit

Permalink
FIx stubtest's tests to work with the latest version of `typing_exten…
Browse files Browse the repository at this point in the history
…sions` (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.
  • Loading branch information
AlexWaygood authored and hamdanal committed Feb 20, 2024
1 parent ca45d20 commit 15a7282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-data/unit/lib-stub/typing_extensions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class _TypedDict(Mapping[str, object]):
__optional_keys__: frozenset[str]
__readonly_keys__: frozenset[str]
__mutable_keys__: frozenset[str]
__closed__: bool
__extra_items__: Any
__total__: bool

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

0 comments on commit 15a7282

Please sign in to comment.