microbit-foundation / micropython-microbit-stubs

Type stubs for MicroPython for micro:bit to support the micro:bit Python Editor V3
https://python.microbit.org/
Other
3 stars 2 forks source link

Avoid unintended rexports. #21

Closed microbit-matt-hillsdon closed 2 years ago

microbit-matt-hillsdon commented 2 years ago

Feels like a bit of a hack, but from . import X is defined to make X available to Pyright so we need to avoid that pattern when importing from __init__. We don't have the freedom to restructure so avoid it with ..microbit.