Closed Josverl closed 2 years ago
Describe the bug A clear and concise description of what the bug is.
stubgen cannot create .pyi stubs for umqtt.robust
.pyi
robust.py contains from . import simple but there is no init.py, therefore relative imports are not possible
from . import simple
To Reproduce in stubber Steps to reproduce the behavior:
python3 src/get_all_frozen.py -stubs all-stubs --mpy
logs
.... Calling stubgen on all-stubs/micropython-latest-frozen/esp8266/GENERIC/umqtt/robust.py Processing 1 files... Critical error during semantic analysis: all-stubs/micropython-latest-frozen/esp8266/GENERIC/umqtt/robust.py:2: error: No parent module -- cannot perform relative import
Screenshots If applicable, add screenshots to help explain your problem.
Stubber information
Firmware Information
Hardware information
VS Code Extension Information (please complete the following information):
Additional context Add any other context about the problem here.
fixed by workaround in 793bbb368f2add1d264dd810bdb24b9bc32ec574
Describe the bug A clear and concise description of what the bug is.
stubgen cannot create
.pyi
stubs for umqtt.robustrobust.py contains
from . import simple
but there is no init.py, therefore relative imports are not possibleTo Reproduce in stubber Steps to reproduce the behavior:
python3 src/get_all_frozen.py -stubs all-stubs --mpy
logs
Screenshots If applicable, add screenshots to help explain your problem.
Stubber information
Firmware Information
Hardware information
VS Code Extension Information (please complete the following information):
Additional context Add any other context about the problem here.