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
Yes, this can be implemented using a plugin similar to how we do this for TypedDict.
There is a question however: what is the value of this pattern as compared to just using a dictionary?
It seems to me it is not very common, so on the second thought this looks like relatively low priority.
(Also note, you should use the same name for enum as in the l.h.s., I edited your post accordingly.)
Enums can not always be accessed with
.
-notation, like in the example below.It would be great if
OperatorEnum["foo"]
is caught by mypy.The text was updated successfully, but these errors were encountered: