Skip to content

Commit

Permalink
Remove extra whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored Sep 16, 2021
1 parent 678bf05 commit ca8cb6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def from_datatype(cls, datatype):
return cls.mentionable
else:
raise TypeError('Invalid usage of typing.Union')

if issubclass(datatype, str):
return cls.string
if issubclass(datatype, bool):
Expand All @@ -633,7 +633,7 @@ def from_datatype(cls, datatype):
return cls.role
if datatype.__name__ == "Mentionable":
return cls.mentionable

# TODO: Improve the error message
raise TypeError(f'Invalid class {datatype} used as an input type for an Option')

Expand Down

0 comments on commit ca8cb6d

Please sign in to comment.