Such case `Lib/test/test_typing.py` doesn't cover. ```py 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. <!-- gh-linked-prs --> ### Linked PRs * gh-101563 * gh-101611 <!-- /gh-linked-prs -->