diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-07-22 13:48:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-22 13:48:45 -0700 |
| commit | 02b71e013adda29cd67172a3782fda8fa5da0bba (patch) | |
| tree | 4a0230aa6e19e9392908e1b23e83f5e9a4d93128 /shared-bindings/nvm/ByteArray.c | |
| parent | 05a10f7905bfb77f3d5dff2525c9d10375801329 (diff) | |
| parent | 9e3fa863f1d0dcf8eae54554ffc7016eaa6de157 (diff) | |
Merge pull request #3107 from dherrada/type_hints
Adding type hints
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`)""" //| ... //| |
