Commit 2b77a6f
committed
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.1 parent 473557c commit 2b77a6f
2 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments