Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores

This commit is contained in:
Bryan Forbes
2022-08-04 21:46:02 -05:00
committed by GitHub
parent 60079aee1b
commit d707019348
14 changed files with 30 additions and 30 deletions

View File

@ -1696,7 +1696,7 @@ class Messageable:
The message with the message data parsed.
"""
async def _around_strategy(retrieve, around, limit):
async def _around_strategy(retrieve: int, around: Optional[Snowflake], limit: Optional[int]):
if not around:
return []
@ -1705,7 +1705,7 @@ class Messageable:
return data, None, limit
async def _after_strategy(retrieve, after, limit):
async def _after_strategy(retrieve: int, after: Optional[Snowflake], limit: Optional[int]):
after_id = after.id if after else None
data = await self._state.http.logs_from(channel.id, retrieve, after=after_id)
@ -1717,7 +1717,7 @@ class Messageable:
return data, after, limit
async def _before_strategy(retrieve, before, limit):
async def _before_strategy(retrieve: int, before: Optional[Snowflake], limit: Optional[int]):
before_id = before.id if before else None
data = await self._state.http.logs_from(channel.id, retrieve, before=before_id)