mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com> Co-authored-by: Josh <josh.ja.butt@gmail.com>
This commit is contained in:
@ -278,7 +278,7 @@ class Widget:
|
||||
def __str__(self) -> str:
|
||||
return self.json_url
|
||||
|
||||
def __eq__(self, other: Any) -> bool:
|
||||
def __eq__(self, other: object) -> bool:
|
||||
if isinstance(other, Widget):
|
||||
return self.id == other.id
|
||||
return False
|
||||
|
Reference in New Issue
Block a user