How can I type annotate a general nested TypedDict?
How can I type annotate a general nested TypedDict? Question: I’m trying to remove the Any type hint from code similar to the following: from typing import TypedDict, Any class NestedDict(TypedDict): foo: str class EventDict(TypedDict): nested: NestedDict class BaseEventDict(TypedDict): nested: Any # this should accept NestedDict but also other TypedDicts which may contain additional fields …