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
I think this can be fixed by using SIGALRM: Final = Signals.SIGALRM etc. in the stubs instead of explicit literal type annotations. Using a literal type annotations instead of Final is likely to cause issues like this. The mypy behavior hasn't changed in a long time, so I doubt it's a regression in mypy.
This code:
Produces:
Source: https://github.com/python/typeshed/blob/main/stdlib/signal.pyi
It is a regression of 1.15.0, before this code was correct: https://mypy-play.net/?mypy=1.14.1&python=3.12&gist=24f0696ba047856ad7d932f4a7f25ec4
I don't see a reason, why two enum membres cannot be appended to a single list.
The text was updated successfully, but these errors were encountered: