Skip to content

Commit

Permalink
Fix OptionClass.resolve() docstring
Browse files Browse the repository at this point in the history
Mkdocstrings couldn't correctly understand the Exceptions clause because of it spanning several lines and would output warnings about it.

CommandSetupError now has a row in the rendered table for each case that it may be raised.
  • Loading branch information
Bluenix2 committed Oct 5, 2021
1 parent 727be29 commit 196915d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wumpy/interactions/commands/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ def resolve(
The resolved value from the interaction and option.
Exceptions:
CommandSetupError:
There is no data and there is no default or the data is of the
wrong option type.
CommandSetupError: There is no data and a default is missing.
CommandSetupError: The data is of an unexpected type.
CommandSetupError: The data failed to be converted to an enum.
"""
if data is None:
if self.default is MISSING:
Expand Down

0 comments on commit 196915d

Please sign in to comment.