Update unncessary-regular-expression
(RUF055
) fix to use var == value
#14733
Labels
help wanted
Contributions especially welcome
preview
Related to preview mode features
rule
Implementing or modifying a lint rule
I think this should be
s == "abc"
. It's a minor stylistic difference (in which I thinkx == VALUE
is more idiomatic), but it can cause actual differences due to type checking implementations, e.g. microsoft/pyright#9093Originally posted by @zanieb in #14659 (comment)
The text was updated successfully, but these errors were encountered: