diff options
| author | root <siehputz@gmail.com> | 2020-07-24 23:28:41 -0500 |
|---|---|---|
| committer | root <siehputz@gmail.com> | 2020-07-24 23:28:41 -0500 |
| commit | c4817968eee29257cbeaabace0a29fcbed1c3b47 (patch) | |
| tree | 25108d321af3697e608270872e59b5aec2043cc5 /shared-bindings/nvm/ByteArray.c | |
| parent | d9503e579b72d8bad6f556589da50ba9833b4574 (diff) | |
| parent | 3dfed3c4aa52d06bd2eb1c28d0a1916821cc3f80 (diff) | |
Merge branch 'opt-test' of https://github.com/DavePutz/circuitpython into opt-test
Diffstat (limited to 'shared-bindings/nvm/ByteArray.c')
| -rw-r--r-- | shared-bindings/nvm/ByteArray.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shared-bindings/nvm/ByteArray.c b/shared-bindings/nvm/ByteArray.c index 06d7d4c95..278ac4d73 100644 --- a/shared-bindings/nvm/ByteArray.c +++ b/shared-bindings/nvm/ByteArray.c @@ -44,12 +44,14 @@ //| microcontroller.nvm[0:3] = b\"\xcc\x10\x00\"""" //| -//| def __init__(self, ): +//| def __init__(self) -> None: //| """Not currently dynamically supported. Access the sole instance through `microcontroller.nvm`.""" //| ... //| -//| def __len__(self, ) -> Any: +//| def __bool__(self) -> bool: ... +//| +//| def __len__(self) -> int: //| """Return the length. This is used by (`len`)""" //| ... //| |
