Jeff Epler
1c09a0b494
fix string construction
2023-09-22 13:53:56 -05:00
Jeff Epler
e1af819a91
fix (unused) default for some required args
2023-09-22 13:53:11 -05:00
Dan Halbert
2c0fa0f7dc
initial merge from v1.20.0; just satisifying conflicts
2023-09-19 11:10:12 -04:00
Dan Halbert
0d2c3c3f08
wip: continuing compilation fixes; mp_obj_alloc everywhere
2023-08-07 20:45:57 -04:00
MicroDev
d9d94eacca
run updated pre-commit
2023-02-01 13:38:41 +05:30
Jeff Epler
907c5d387f
Tweak black_bindings
...
Originally, black_bindings found each contiguous "//|" block and sent
it to black independently. This was slower than it needed to be.
Instead, swap the comment prefix: when running black, take off
"//|" prefixes and put "##|" prefixes on all un-prefixed lines.
Then, after black is run, do the opposite operation
This more than doubles the overall speed of "pre-commit run --all",
from 3m20s to 55s CPU time on my local machine (32.5s to under 10s
"elapsed" time)
It also causes a small amount of churn in the bindings, because
black now sees enough context to know whether one 'def' follows another
or ends the 'def's in a 'class'. In the latter case, it adds an extra
newline, which becomes a "//|" line.
I'm less sure why a trailing comma was omitted before down in
rp2pio/StateMachine.c but let's roll with it.
2022-09-30 11:18:13 -05:00
Jeff Epler
b2cc8d2aad
run black_bindings across all bindings
2022-09-27 15:21:42 -05:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO
2022-05-27 12:59:54 -07:00
Alec Delaney
bbc29e84a7
Add os, "socket", atexit, ssl, struct, traceback, math links
2022-05-03 12:31:20 -06:00
Rob Capellini
1c8828223f
Convert more modules to use MP_REGISTER_MODULE
...
Convert neopixel_write, onewireio, ps2io, pulseio, pwmio, rainbowio, random, rgbmatrix, rotaryio, rtc, sdcardio, sharpdisplay, _stage, storage, struct, supervisor, synthio, touchio, traceback, usb_cdc, usb_hid, usb_midi, and vectorio modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-30 22:29:51 -04:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
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
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
4758081e10
Added type hints to struct
2020-07-03 15:45:29 -04:00
Scott Shawcroft
4e8de3c554
Swap sphinx to autoapi and the inline stubs
2020-05-12 17:28:24 -07:00
dherrada
991045b9ce
Did struct, supervisor, terminalio
2020-05-12 11:28:33 -04:00
Scott Shawcroft
cfe24b8532
Improve rST consistency for rst2pyi use
2019-05-30 19:02:47 -07:00
Dan Halbert
7a09af73ec
Improve struct compatibility with CPython
2019-01-20 15:12:34 -05:00
Scott Shawcroft
933add6cd8
Support internationalisation.
2018-08-07 14:58:57 -07:00
Scott Shawcroft
8c1f5427bc
atmel-samd: Add empty line for RST docs
...
Right now calcsize is being grouped with the doc above: https://circuitpython.readthedocs.io/en/latest/shared-bindings/struct/__init__.html
2017-10-30 18:57:28 -07:00
mrmcwethy
1893669833
calcsize90 should be documented now
2017-10-27 23:25:00 -07:00
Michael McWethy
b41cbe9256
CircuitPython now has struct instead of ustruct ( #302 )
...
Added struct module to shared-bindings and shared-module. removed ustruct
2017-10-18 12:50:20 -07:00