ruff/crates/ruff_linter/resources/test/fixtures/pylint/literal_membership.py

11 lines
115 B
Python

# Errors
1 in [1, 2, 3]
1 in (1, 2, 3)
1 in (
1, 2, 3
)
# OK
fruits = ["cherry", "grapes"]
"cherry" in fruits