Skip to content

Commit

Permalink
Fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm committed Jan 22, 2025
1 parent 7819d5e commit bf01890
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sphinx/ext/autosummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,10 @@ def get_items(self, names: list[str]) -> list[tuple[str, str | None, str, str]]:
if signatures_option is None:
signatures_option = 'none' if 'nosignatures' in self.options else 'long'
if signatures_option not in {'none', 'short', 'long'}:
msg = ("Invalid value for autosummary :signatures: option: "
f"{signatures_option!r}. Valid values are 'none', 'short', 'long'")
msg = (
'Invalid value for autosummary :signatures: option: '
f"{signatures_option!r}. Valid values are 'none', 'short', 'long'"
)
raise ValueError(msg)

max_item_chars = 50
Expand Down

0 comments on commit bf01890

Please sign in to comment.