mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`, `__class__.__name__!r` to the standard form of `__class__.__name__`
This commit is contained in:
@ -94,7 +94,7 @@ class Object(Hashable):
|
||||
try:
|
||||
id = int(id)
|
||||
except ValueError:
|
||||
raise TypeError(f'id parameter must be convertible to int not {id.__class__!r}') from None
|
||||
raise TypeError(f'id parameter must be convertible to int not {id.__class__.__name__}') from None
|
||||
self.id: int = id
|
||||
self.type: Type[abc.Snowflake] = type or self.__class__
|
||||
|
||||
|
Reference in New Issue
Block a user