Skip to content

Commit

Permalink
Typehint new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
izxxr authored Sep 5, 2021
1 parent 6473607 commit 60072da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def set_image(self: E, *, url: MaybeEmpty[Any]) -> E:

return self

def remove_image(self):
def remove_image(self: E) -> E:
"""Removes the embed's image.
This function returns the class instance to allow for fluent-style
Expand Down Expand Up @@ -482,7 +482,7 @@ def set_thumbnail(self: E, *, url: MaybeEmpty[Any]) -> E:

return self

def remove_thumbnail(self):
def remove_thumbnail(self: E) -> E:
"""Removes the embed's thumbnail.
This function returns the class instance to allow for fluent-style
Expand Down

0 comments on commit 60072da

Please sign in to comment.