-
Notifications
You must be signed in to change notification settings - Fork 29
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
Shape not recognized by PyCharm autoimport #70
Comments
What PyCharm version are you using? I could not reproduce this (but I'm still running 2020.3).
Well, that seems to be a leftover from trickery to make MyPy/Pylint/PyCharm be ok with giving Thanks for reporting this. I will test it some more and may release a fix soon. |
PyCharm 2022.1 (Professional Edition)
👍 |
If I type
Shape
and press Alt + Enter in PyCharm to find the correct import, it doesn't givenptyping.Shape
as a suggestion. But if I addfrom nptyping import Shape
, it works as expected.With other types it gives the right suggestions.
Maybe it is because
Shape
is imported like this?nptyping/nptyping/__init__.py
Line 73 in 52252f2
I don't quite get why you do that, because
Shape
is again also defined here.nptyping/nptyping/typing_.py
Line 62 in 52252f2
It should be possible to just do
from nptyping.typing_ import Shape
in__init__.py
right?The text was updated successfully, but these errors were encountered: