mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
ruff: Fix PYI032 Prefer object for the second parameter to __eq__.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
53e8c0c497
commit
ec00c2970f
@@ -111,7 +111,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
|
||||||
|
|||||||
Reference in New Issue
Block a user