MicroPython-stdlib-stubs 1.24.1 : Improved Type Checking, Documentation Sync, and _mpy_shed Integration
The stubs for the async and uasyncio modules of earlier versions had many issues.
In this version, the stunb for asyncio
are based on typeshed stdlib.asyncio
stub, that has been tuned specifically for micropython by removing the features and functionality that is not available in MicroPython. However the Doc strings are taken from doc-stubs, to keep them in sync in line with the MicroPython Documentaion
For distribution the _mpy_shed
module is added to the micropython-stdlib-stubs
package.
Significant effort has been done to improve the ability for mypy to perform type checking on the micropython code,
while maintaining compatibility with the way the micropython documentation, is structured.
There are further improvement to be made, but this is a significant step forward for mypy users.
While parts of the stdlib modules are hand-edited, they can be updated by running the python build.py
.
This functionality has not been merged into the stubber tool at this time.
The stdlib stubs are now build using uv
which uses hatchling