replace == None with is None

This commit is contained in:
Michael Poluektov committed 2024-08-14 13:39:53 +01:00
1 parent 6f72def1ac
commit 038fc48ac0
6 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ class TagTable:
self, user_id: str, form_data: ChatIdTagForm
) -> Optional[ChatIdTagModel]:
tag = self.get_tag_by_name_and_user_id(form_data.tag_name, user_id)
if tag == None:
if tag is None:
tag = self.insert_new_tag(form_data.tag_name, user_id)
id = str(uuid.uuid4())