You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sys stub for 1.19.1 (ESP32) says that sys.implementation is a tuple. However, it’s actually a namedtuple; its items can be accessed as attributes, e.g. sys.implementation.name.
Using sys.implementation.name currently results in error: "Tuple[Any, ...]" has no attribute "name".
The text was updated successfully, but these errors were encountered:
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"
.The text was updated successfully, but these errors were encountered: