mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Update comments after # type: ignore
to be compatible with PEP 484
This commit is contained in:
@ -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