Closed DeflateAwning closed 2 days ago
You are correct that the type stubs are incomplete here. I'm aware of this and tracking it. I'm doing a significant change to to add overloads to the stubs, and the fix to this will follow that one.
The code will run, but you may want to add a # type:ignore
for now.
Ah oops, I totally opened that on the wrong repo; my bad. Thanks a lot!
The NeoPixel example from the MicroPython rp2 docs is as follows:
The example gives a warning on the
np[0] = (255, ...)
line, because it can't find the__setitem__
method of theNeoPixel
class.