From d3c08fc740d30f0573095bcb386c5d868cfb24c0 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Sat, 20 Apr 2024 16:31:35 +0100 Subject: [PATCH] style: PEP8 'Comparisons to ... None should always be done with is or is not, never the equality operators' --- spond/spond.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spond/spond.py b/spond/spond.py index 9eb71a5..8664da2 100644 --- a/spond/spond.py +++ b/spond/spond.py @@ -403,9 +403,9 @@ async def update_event(self, uid, updates: dict): } for key in base_event: - if event.get(key) != None and not updates.get(key): + if event.get(key) is not None and not updates.get(key): base_event[key] = event[key] - elif updates.get(key) != None: + elif updates.get(key) is not None: base_event[key] = updates[key] data = dict(base_event)