Skip to content

stubber_v1.15.0

Compare
Choose a tag to compare
@Josverl Josverl released this 18 Nov 21:09
· 769 commits to main since this release

New and updated packages published to PyPi

(.post1 indicates a new package, all others are updates)

Micropython Version Published Packages Post Version
v1.21.0
micropython-esp32-stubs 1.21.0.post3
micropython-esp32-esp32_generic-stubs 1.21.0.post1
micropython-rp2-stubs 1.21.0.post1
micropython-rp2-rpi_pico-stubs 1.21.0.post2
micropython-rp2-rpi_pico_w-stubs 1.21.0.post2
micropython-samd-stubs 1.21.0.post1
micropython-samd-seeed_wio_terminal-stubs 1.21.0.post2
micropython-stm32-stubs 1.21.0.post1
micropython-stm32-pybv11-stubs 1.21.0.post2
v1.20.0
micropython-esp32-stubs 1.20.0.post4
micropython-esp32-generic_ota-stubs 1.20.0.post1
micropython-esp32-generic_s3-stubs 1.20.0.post1
micropython-rp2-stubs 1.20.0.post4
micropython-rp2-pico-stubs 1.20.0.post4
micropython-rp2-pico_w-stubs 1.20.0.post4
micropython-samd-stubs 1.20.0.post1
micropython-samd-adafruit_feather_m4_express-stubs 1.20.0.post3
micropython-samd-adafruit_itsybitsy_m4_express-stubs 1.20.0.post3
micropython-samd-minisam_m4-stubs 1.20.0.post3
micropython-samd-seeed_wio_terminal-stubs 1.20.0.post4
micropython-stm32-stubs 1.20.0.post4
micropython-stm32-pybv11-stubs 1.20.0.post5
v1.19.1
micropython-esp32-stubs 1.19.1.post15
micropython-esp32-generic_s3-stubs 1.19.1.post1
micropython-esp32-generic_spiram-stubs 1.19.1.post1
micropython-esp32-um_tinypico-stubs 1.19.1.post8
micropython-esp8266-stubs 1.19.1.post12
micropython-rp2-stubs 1.19.1.post14
micropython-stm32-stubs 1.19.1.post12

Improvement in frozen stubs
Some of the module stubs are generated based on the python modules.
There usually contain little or no docstring information, while the documentation does have that infromation

The stubber tool has been updated to to merge the information from the documentation into these frozen stubs, providing combined and richer information where the two can be matched.

Enrich both Python and C modules
Some of the modules are built partly in (frozen) Python and partly in C(++). by convention the C part of the module is prefixes with an _
an example are the rp2 and the _rp2 modules where the classes and methos of both have been documented in a single document rp2/.st
The documentation merge process will now also enrich the _rp2.pyi and similar named stub files

Quality Testing.
In order to keep an eye on quality, and find cases where the stubs prove incorrect type-hints,
I have setup pytest with some custom configuration to track the quality.
Due to the diversity of features and functionality across ports, boards and versions this should help spot where stubs are not providing the expected/desired results.