MicroPython-stdlib-stubs 1.24.1 : Improved Type Checking, Documentation Sync, and _mpy_shed Integration #782
Josverl
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The stubs for the async and uasyncio modules of earlier versions had many issues.
In this version, the stunb for
asyncio
are based on typeshedstdlib.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 DocumentaionFor distribution the
_mpy_shed
module is added to themicropython-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 useshatchling
This discussion was created from the release MicroPython-stdlib-stubs 1.24.1 : Improved Type Checking, Documentation Sync, and _mpy_shed Integration.
Beta Was this translation helpful? Give feedback.
All reactions