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
Behavior like this is is fully supported at runtime, however, __getattr__ isn't defined on enum.nonmember, making this raise an error in Pyright. Previously, this was allowed, but now the typeshed definitions are fully relied on: microsoft/pyright#7924
There are some issues with the typing for
enum.nonmember
:Behavior like this is is fully supported at runtime, however,
__getattr__
isn't defined onenum.nonmember
, making this raise an error in Pyright. Previously, this was allowed, but now the typeshed definitions are fully relied on: microsoft/pyright#7924Current types:
Additionally, using
.value
here actually does lead to a runtime error, but types fornonmember
would indicate that being fine.Type-checker would except this, but this fails at runtime:
The text was updated successfully, but these errors were encountered: