Skip to content

Commit 5fa3386

Browse files
Add documentation examples for consider-using-in. (#6635)
Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 4169f6b commit 5fa3386

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def fruit_is_round(fruit):
2+
return fruit == "apple" or fruit == "orange" or fruit == "melon" # [consider-using-in]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def fruit_is_round(fruit):
2+
return fruit in {"apple", "orange", "melon"}

0 commit comments

Comments
 (0)