PLR1714 fixing sometimes breaks mypy checks #10017
Labels
bug
Something isn't working
good first issue
Good for newcomers
rule
Implementing or modifying a lint rule
as per pytest-dev/pytest#11998
while i presume that most free-form uses should apply,
mypy cannot identify set membership checks for certain usages
so
sys.platform in {"win32", "emscripten"}
would trigger mypy confusion whilesys.platform == "win32" or sys.platform == "emscripten"
would ensure mypy picks the correct stubs for each conditiona first naive heuristics could ensure the rule wont be apply to members of sys/platform
The text was updated successfully, but these errors were encountered: