Skip to content

Commit

Permalink
Fix stubtest's tests to work with the latest typing_extensions release (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
AlexWaygood authored Nov 30, 2023
1 parent 69b3144 commit 95e7fcb
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 @@ -59,6 +59,8 @@ class _TypedDict(Mapping[str, object]):
# Stubtest's tests need the following items:
__required_keys__: frozenset[str]
__optional_keys__: frozenset[str]
__readonly_keys__: frozenset[str]
__mutable_keys__: frozenset[str]
__total__: bool

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

0 comments on commit 95e7fcb

Please sign in to comment.