ruff: Fix PYI032 Prefer object for the second parameter to __eq__.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit ec00c2970f)
This commit is contained in:
Anders Kaseorg
2023-08-10 11:06:57 -07:00
committed by Alex Vandiver
parent 8a1704f765
commit 43b09fd89d

View File

@@ -99,7 +99,7 @@ class UserPushIdentityCompat:
return result return result
def __eq__(self, other: Any) -> bool: def __eq__(self, other: object) -> bool:
if isinstance(other, UserPushIdentityCompat): if isinstance(other, UserPushIdentityCompat):
return self.user_id == other.user_id and self.user_uuid == other.user_uuid return self.user_id == other.user_id and self.user_uuid == other.user_uuid
return False return False