Commit graph

2 commits

Author SHA1 Message Date
George Waters
559a72b4d6
Use stub for micropython module doc generation 2025-07-16 14:13:13 -04:00
George Waters
2b77a6f644
Add a static stubs directory
Stubs are mostly generated from modules in shared-bindings. But in order
to generate the stub the c code has to be commented with the appropriate
type hints. If a module is located somewhere else (like
micropython.const) and/or there are not the appropriate doc comments, no
stub is generated for it. For these occassions we can create static
stubs in the stubs directory that can be used in circuitpython-stubs.

This also creates a stub for micropython.const and adds the static
stubs directory into the makefile stubs command.
2025-07-15 22:17:49 -04:00