Open winksaville opened 4 years ago
I tested this with python 3.7 and 3.8, the same results.
I'm hoping that soon I can test with python 3.9 and maybe
things will work. Right now trying to install 3.9 in conda,
conda create -n py39-helix python=3.9
fails because conda-forge
hasn't been able to compile all dependencies I need for developement
using 3.9, hopefully that will be resolved soon.
TODO: File a bug on mypy?
A solution would be don't be "tricky" with using Optionals, but I think its "useful". We'll see :)
Another solution would be to add a test
field in Helix so that path could be tested, but I don't like that ether, LoL.
Code coverage is not 100%
The reason is that there is an extraenous "if" statement that can't be tested. This is necessary so
make mypy
works and if mypy worked the "if" statement wouldn't be necessary and we'd then have 100% coverage.What I Did
The reason
make coverage
is not 100%:Because to allow
make mypy
to pass:The following code is added to helix.py:
If you comment the code the following are the results of
make mypy
: