Jeff Epler
41beca14af
only import a module if we use something from it
...
This prevents a bogus line such as `from types import ` from being
generated.
surprisingly this was not detected as a problem until a change
in isort! Formerly it would remove the bad line, but now it (correctly!)
errors
2022-12-13 16:04:07 -06:00
Scott Shawcroft
dcc3ec171e
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2
2022-03-15 13:56:11 -07:00
Dan Halbert
c70425ab6b
add annotations to __future__; don't generate __future__ stubs
2022-03-10 11:19:35 -05:00
Dan Halbert
dd239efc94
add annotations to __future__; don't generate __future__ stubs
2022-03-07 17:43:15 -05:00
Dan Halbert
38e9fd703b
add circuitpython_typing. to some annotations; generalize extract_pyi.pi
2022-02-28 21:27:24 -05:00
Jeff Epler
166793f843
circuitpython_stubs: Use circuitpython_typing
for cp-specific typing
...
Installing stubs for a module named `_typing` seems like a dubious
decision.
2021-12-22 11:14:21 -06:00
Jeff Epler
755caddc89
extract_py: Import Dict if needed
2021-07-20 19:49:25 -05:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Dan Halbert
65e2fe4654
fix stub problems; touch up doc
2020-11-27 23:27:15 -05:00
sw23
ad166ca479
Fixing make stub warnings and mypy issuesmak
2020-10-29 20:15:34 -04:00
Taku Fukada
272d300fc8
Fix Read the Docs bulid failing
2020-08-08 01:33:24 +09:00
Taku Fukada
56c898da80
Modify some Python stubs
2020-08-07 01:01:28 +09:00
Taku Fukada
54a342a7f5
Add and correct some type hints
2020-07-24 18:20:03 +09:00
dherrada
9e3fa863f1
Merge branch 'main' into type_hints
2020-07-21 16:18:51 -04:00
Taku Fukada
a29105fefd
Improve .pyi generation
2020-07-22 00:37:22 +09:00
dherrada
612c6bb86b
Merge branch 'main' into type_hints
2020-07-17 14:55:30 -04:00
Diego Elio Pettenò
34b4993d63
Add license to some obvious files.
2020-07-06 19:16:25 +01:00
dherrada
e169da3532
More extract_pyi tweaks
2020-07-02 12:02:21 -04:00
dherrada
427733af04
More tweaks to extract_pyi.py
2020-07-02 11:30:42 -04:00
dherrada
1e96ca582e
Made more modifications to extract_pyi.py
2020-07-02 11:10:43 -04:00
dherrada
d1664bdde2
Fixed extract_pyi script to allow NoneType
2020-07-02 10:25:20 -04:00
dherrada
4e22b9a346
Better keyerror handling
2020-05-27 11:30:51 -04:00
dherrada
67cb48acbf
Added another except
2020-05-21 18:21:32 -04:00
dherrada
58b07ecb43
Removed a
2020-05-19 14:50:47 -04:00
dherrada
0fa5f6a0dd
Merge branch 'extract-types' of https://github.com/dherrada/circuitpython into extract-types
2020-05-18 19:01:50 -04:00
dherrada
cf524cb6b1
extract_pyi no longer raises a TypeError for missing types
2020-05-18 18:59:14 -04:00
dherrada
e67d6756d1
Merge branch 'master' into extract-types
2020-05-15 18:17:23 -04:00
dherrada
0e39d4398c
Merged extract_types into extract_pyi
2020-05-15 13:55:46 -04:00
Scott Shawcroft
8ac3e7977f
Remove debug prints
2020-05-14 18:48:07 -07:00
Scott Shawcroft
afc84c2fd1
Fix ulab, math and template.
2020-05-14 15:58:36 -07:00
Scott Shawcroft
4e8de3c554
Swap sphinx to autoapi and the inline stubs
2020-05-12 17:28:24 -07:00
Scott Shawcroft
8c77252adf
Better handle //| and do __init__.c first.
2020-04-29 10:29:12 -07:00
Scott Shawcroft
46713482f4
Add verification script
2020-04-27 14:36:14 -07:00