Skip to content

Commit

Permalink
fix: array.array __getitem__ __setitem__ not defined
Browse files Browse the repository at this point in the history
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
  • Loading branch information
Josverl committed Nov 10, 2023
1 parent 5710d6c commit 1741969
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions snippets/feat_stdlib/check_array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import array

NUM_LEDS = 10

ar = array.array("I", [0 for _ in range(NUM_LEDS)])

x = ar[3]
# type: ignore # TODO: __getitem__ not defined
ar[3] = 0x12345678
# type: ignore # TODO: __setitem__ not defined
2 changes: 2 additions & 0 deletions src/stubber/rst/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ class Fix:
# ESPNow
"ESPNow": "ESPNowBase,Iterator",
"AIOESPNow": "ESPNow",
# array
"array": "List",
}


Expand Down

0 comments on commit 1741969

Please sign in to comment.