Closed lancelote closed 7 years ago
According to PEP 484 Python stubs require re-importing:
Modules and variables imported into the stub are not considered exported from the stub unless the import uses the import ... as ... form or the equivalent from ... import ... as ... form.
I believe it's a bug in the code insight engine of PyCharm not related to MicroPython. Could you please report it to its issue tracker?
I will, thank you for an explanation! Please feel free to close.
Ticket: https://youtrack.jetbrains.com/issue/PY-24891
Note: I failed to reproduce the problem outside of MicroPython support.
PyCharm suggests no autocompletion for
display
objects, e.g.:also
scroll
and otherdisplay
functions have no parameter hints. The problem seems to be with alias imports in init file.Changing from:
to
fixes the problem. So I wonder - why are the alias imports used there in a first place?