Fix incorrect typehints in Guild.create_role

This commit is contained in:
RobotHanzo 2021-06-28 12:05:40 +08:00 committed by GitHub
parent 2cd2d1d3ee
commit 75477b2995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2158,7 +2158,7 @@ class Guild(Hashable):
permissions: Permissions = ..., permissions: Permissions = ...,
colour: Union[Colour, int] = ..., colour: Union[Colour, int] = ...,
hoist: bool = ..., hoist: bool = ...,
mentionable: str = ..., mentionable: bool = ...,
) -> Role: ) -> Role:
... ...
@ -2171,7 +2171,7 @@ class Guild(Hashable):
permissions: Permissions = ..., permissions: Permissions = ...,
color: Union[Colour, int] = ..., color: Union[Colour, int] = ...,
hoist: bool = ..., hoist: bool = ...,
mentionable: str = ..., mentionable: bool = ...,
) -> Role: ) -> Role:
... ...
@ -2183,7 +2183,7 @@ class Guild(Hashable):
color: Union[Colour, int] = MISSING, color: Union[Colour, int] = MISSING,
colour: Union[Colour, int] = MISSING, colour: Union[Colour, int] = MISSING,
hoist: bool = MISSING, hoist: bool = MISSING,
mentionable: str = MISSING, mentionable: bool = MISSING,
reason: Optional[str] = None, reason: Optional[str] = None,
) -> Role: ) -> Role:
"""|coro| """|coro|