jspahrsummers / adt

Algebraic data types for Python (experimental, not actively maintained)
MIT License
172 stars 14 forks source link

make adt PEP 561 compatible #20

Closed moshelooks closed 5 years ago

moshelooks commented 5 years ago

cf. https://www.python.org/dev/peps/pep-0561/#id18 and https://mypy.readthedocs.io/en/latest/installed_packages.html#making-pep-561-compatible-packages

without this, mypy will not typecheck adt properly when it is installed via pip:

error: Cannot find module named 'adt'
note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
jspahrsummers commented 5 years ago

This is great, thank you! I only learned about this in a more recent project. 😄