Open scy opened 1 year ago
I have run into the same, and have a potential fix in the works. One catch is that the micropython docs state that the value is a tuple, and that some ports supply a named tuple.
For typing a Union of both may be a good enough experience
The
sys
stub for 1.19.1 (ESP32) says thatsys.implementation
is atuple
. However, it’s actually anamedtuple
; its items can be accessed as attributes, e.g.sys.implementation.name
.Using
sys.implementation.name
currently results inerror: "Tuple[Any, ...]" has no attribute "name"
.