mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update comments after # type: ignore to be compatible with PEP 484
This commit is contained in:
1 parent
0bcb0d0e3c
commit
5ffa3e85de
25 files changed
+68
-68
No files matched your search
+1
-1
@@ -123,7 +123,7 @@ class StickerPack(Hashable):
|
||||
@property
|
||||
def banner(self) -> Optional[Asset]:
|
||||
""":class:`Asset`: The banner asset of the sticker pack."""
|
||||
return self._banner and Asset._from_sticker_banner(self._state, self._banner) # type: ignore - type-checker thinks _banner could be Literal[0]
|
||||
return self._banner and Asset._from_sticker_banner(self._state, self._banner) # type: ignore
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f'<StickerPack id={self.id} name={self.name!r} description={self.description!r}>'
|
||||
|
||||
Reference in new issue
Block a user