Skip to content

Commit

Permalink
fix overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Snipy7374 committed Aug 26, 2024
1 parent 70e43bd commit 59dd700
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions disnake/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ def footer(self) -> _EmbedFooterProxy:
return cast("_EmbedFooterProxy", EmbedProxy(self._footer))

@overload
def set_footer(self, *, text: Any, icon_url: Optional[Any]) -> Self:
def set_footer(self, *, text: Any, icon_url: Optional[Any] = ...) -> Self:
...

@overload
def set_footer(self, *, text: Any, file: File) -> Self:
def set_footer(self, *, text: Any, file: File = ...) -> Self:
...

def set_footer(
Expand Down Expand Up @@ -596,11 +596,13 @@ def author(self) -> _EmbedAuthorProxy:
return cast("_EmbedAuthorProxy", EmbedProxy(self._author))

@overload
def set_author(self, *, name: Any, url: Optional[Any], icon_url: Optional[Any]) -> Self:
def set_author(
self, *, name: Any, url: Optional[Any] = ..., icon_url: Optional[Any] = ...
) -> Self:
...

@overload
def set_author(self, *, name: Any, url: Optional[Any], file: File) -> Self:
def set_author(self, *, name: Any, url: Optional[Any] = ..., file: File = ...) -> Self:
...

def set_author(
Expand Down

0 comments on commit 59dd700

Please sign in to comment.