Set TypedDict module correctly when using class definition syntax (#2) (#4) I shuffled the code so that we only override `__module__` when TypedDict is instantiated (and not when it's subclassed). And I tested that `__module__` is correct with both syntaxes.