jspahrsummers / adt

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

Make mypy_plugin compatible with mypy>=0.730 #28

Closed wchresta closed 4 years ago

wchresta commented 4 years ago

This introduces a new hook to change the type mypy sees before the semantic analyzer runs. This is briefly discussed in #21

The other issues raised in my comment turned out to be bugs that already existed for the old mypy version, too. These are not addressed with this fix.

This has been tested with mypy==0.711 and mypy=0.761