micropython-stubber icon indicating copy to clipboard operation
micropython-stubber copied to clipboard

Generate and maintain stubs for different MicroPython ports to use with VSCode and Pylance, PyRight, Thonny, PyCharm or pylint

Results 89 micropython-stubber issues
Sort by recently updated
recently updated
newest added

Pro: - can be useful to help understand the interface Con: - against recommendation, against PEP , slows down linters , type checkers - no tooling support ( all stubbers...

enhancement
stubber

Update needed to be able to process newer manifests in get-frozen tools/manifestfile.py: Change library search to use a list of paths. This commit changes how library packages are searched for...

Find am efficient way to incorporate these unmerged documentation proposals into the stubs. - [ ] [machine: RTC.memory()](https://github.com/micropython/micropython/compare/d3335677b77504ddb5be79a5648d72fd975c1b9c..15c3839adf6e0cfed6432d15b2337c96c65d495d) - [ ]

### - [x] first check if they are still supported by Pylance - [ ] module : Merge the docstrings for the Module Literals - [ ] class: Merge the...

DocStubs
Merge
reference

when using a compound cmdline such as `stubber -v build --version v1.21.0 --version latest --version v1.20.0 --port auto --board auto` An incorrect incorrect version will be created such as :...

bug
Low-Prio

Sometimes the stubs lead to type narrowing that require additional asserts just to satisfy the type checkers. ` str | None` Typeshed has a recommendation for that https://github.com/python/typeshed/blob/main/CONTRIBUTING.md#the-any-trick see if/where...

- [x] add new method to Class - [x] find/extract method in docstubs - [x] find/extract class in docstubs - [ ] add new ClassDef to module ## machine -...

Merge
stubber

this is needed when merging docstubs with frozen stubs. in that case the frozen stubs will have a better typedef

enhancement
Merge
stubber

Tracking upstream issue that causes bloat in just about all the micropython stubs https://github.com/python/mypy/issues/16658 Options - [ ] roll back to earlier MyPy version ( 1.6.0?) - [ ] run...

blocked
firmware stubs

often `init` is well documented , where __init__ is not This is seen on multiple classess for example `_rp2.StateMachine` [¶](https://docs.micropython.org/en/latest/library/rp2.StateMachine.html#rp2.StateMachine.init) **The constructor** has minimal documentation rp2.StateMachine(id[, program, ...]) ``` def...

stubber