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
RUF023 should not sort __match_args__ because the order of __match_args__ affects which elements are matched against when using positional args in class patterns.
RUF023 should not sort
__match_args__
because the order of__match_args__
affects which elements are matched against when using positional args in class patterns.Take the following code example:
Ruff emits the following errors:
If you change
__match_args__
to("lhs", "op")
, the semantics of the match statement changes, and now bothis_minus_one
calls returnFalse
.The text was updated successfully, but these errors were encountered: