Closed michelrandahl closed 4 years ago
You are correct, I think the problem is that pfun is actually not PEP 561 compliant. Fix is incoming :)
Just released 0.5.2, should be fixed in this version (https://pypi.org/project/pfun/0.5.2/). Please report back 😄
it works, yay :+1:
First off, cool library and nice docs and examples :+1:
However, I am having problems making it work with mypy. It might be something with my setup or my lack of knowledge about mypy, -in that case the outcome might be some more value to add to the readme for other potential users :).
I am simply trying to run mypy on a file
mytest.py
which contains following linesI get following error output when I try to run mypy on it
I have a
mypy.ini
file in the same directory asmytest.py
, and it contains:Besides that, I am running NixOs and I am using a python virtualenv which contains following packages:
and python version
I have tried various things after reading a bit in the mypy docs, but nothing really helped. At first I suspected that mypy wasn't picking up on the
mypy.ini
file, but then I tried addingignore_missing_imports = True
and then it reported success formytest.py
(because it was happily ignoring pfun). I have also verified that there is indeed a filemypy_plugin.py
insidepfun
in thesite-packages
of my virtualenv.Is there something obvious that I am missing?.. Or could the problem be something with my setup? (for example some environment variable pointing to something that doesn't exist in NixOs...)