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.
2 files changed
tree: 811e95227cd9a8d1699768f633ca507a1d755050
  1. tests/
  2. .gitignore
  3. .travis.yml
  4. LICENSE
  5. MANIFEST.in
  6. mypy_extensions.py
  7. README.md
  8. setup.cfg
  9. setup.py
  10. tox.ini
README.md

Mypy Extensions

The “mypy_extensions” module defines experimental extensions to the standard “typing” module that are supported by the mypy typechecker.