Skip to content

Commit 8b5b395

Browse files
committed
ruff: Fix SIM201 Use … != … instead of not … == ….
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 93156d9 commit 8b5b395

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zulip_bots/zulip_bots/bots/merels/libraries/mechanics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def is_jump(vpos_before, hpos_before, vpos_after, hpos_after):
6464

6565
# If the man is in inner square, the distance must be only 1
6666
if [vpos_before, hpos_before] in constants.INNER_SQUARE:
67-
return not (distance == 1)
67+
return distance != 1
6868

6969

7070
def get_hills_numbers(grid):

zulip_bots/zulip_bots/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def is_private_message_but_not_group_pm(
405405
zulip/zulip project, so refactor with care. See the comments in
406406
extract_query_without_mention.
407407
"""
408-
if not message_dict["type"] == "private":
408+
if message_dict["type"] != "private":
409409
return False
410410
is_message_from_self = current_user.user_id == message_dict["sender_id"]
411411
recipients = [

0 commit comments

Comments
 (0)