Skip to content
New issue

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

mypy error when using from simple_pid import PID #48

Closed
rnestler opened this issue Apr 21, 2022 · 0 comments · Fixed by #49
Closed

mypy error when using from simple_pid import PID #48

rnestler opened this issue Apr 21, 2022 · 0 comments · Fixed by #49

Comments

@rnestler
Copy link
Contributor

rnestler commented Apr 21, 2022

When I use from simple_pid import PID and check the code with mypy --strict I get the following error:

$ 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.

Also I think it is strange that the import in __init__.py shadows the PID module in simple_pid.

Maybe it would be better to rename the module to pid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant