Fix type annotations for purge's limit param on Thread/TextChannel

Optional was missing.
This commit is contained in:
Steve C
2021-07-21 02:44:27 -04:00
committed by GitHub
parent 26e68b31ef
commit 834e23dc00
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ class Thread(Messageable, Hashable):
async def purge(
self,
*,
limit: int = 100,
limit: Optional[int] = 100,
check: Callable[[Message], bool] = MISSING,
before: Optional[SnowflakeTime] = None,
after: Optional[SnowflakeTime] = None,