inducer / arraycontext

Choose your favorite numpy-workalike!
6 stars 11 forks source link

Fixes for upcoming mypy 0.900 #20

Closed alexfikl closed 3 years ago

alexfikl commented 3 years ago

According to https://mypy-lang.blogspot.com/2021/05/the-upcoming-switch-to-modular-typeshed.html mypy has unbundled a lot of their type stubs, so those need to be installed separately.

There seems to be a --install-types command https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-install-types that does this automatically, but the docs say it only installs a vetted set of packages. Haven't really tested this either.

inducer commented 3 years ago

Interesting. Despite being in the standard library, types-dataclasses seems necessary. Oh well... fine by me.

Thanks for proposing this fix!