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
Starting with mypy 1.14.0, we started getting an error for an enum class that defines a member as an inversion (i.e. ~) of a different member that is declared with enum.auto().
Bug Report
Starting with mypy 1.14.0, we started getting an error for an enum class that defines a member as an inversion (i.e.
~
) of a different member that is declared withenum.auto()
.To Reproduce
Playground links:
Expected Behavior
The operator should be supported for
enum.Flag
"auto" members.Actual Behavior
FWIW I wonder if this is related to recent changes in typeshed: python/typeshed@3e29e05.
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: