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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, 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,

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,