Closed
Description
Such case Lib/test/test_typing.py
doesn't cover.
from typing import TypedDict, Required, NotRequired, get_type_hints
class Parent(TypedDict, total=False):
field: Required[str]
class Child(Parent):
another_field: NotRequired[str]
assert Child.__required_keys__ == frozenset({"field": str})
assert Child.__optional_keys__ == frozenset({"another_field": str})
I think, we should test it.