We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from simple_pid import PID
When I use from simple_pid import PID and check the code with mypy --strict I get the following error:
mypy --strict
$ mypy --strict test.py test.py:1: error: Module "simple_pid" does not explicitly export attribute "PID"; implicit reexport disabled
I guess this is an issue with the from .PID import PID in __init__.py? If I change it to from .PID import PID as PID it works.
from .PID import PID
__init__.py
from .PID import PID as PID
Also I think it is strange that the import in __init__.py shadows the PID module in simple_pid.
PID
simple_pid
Maybe it would be better to rename the module to pid?
pid
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When I use
from simple_pid import PID
and check the code withmypy --strict
I get the following error:I guess this is an issue with the
from .PID import PID
in__init__.py
? If I change it tofrom .PID import PID as PID
it works.Also I think it is strange that the import in
__init__.py
shadows thePID
module insimple_pid
.Maybe it would be better to rename the module to
pid
?The text was updated successfully, but these errors were encountered: