Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx/ext/autosummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@
exceptions: list[BaseException] = functools.reduce(
operator.iadd, (e.exceptions for e in errors), []
)
raise ImportExceptionGroup('no module named %s' % ' or '.join(tried), exceptions)
raise ImportExceptionGroup(f'could not import {" or ".join(tried)}', exceptions)

Check failure on line 687 in sphinx/ext/autosummary/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (EM102)

sphinx/ext/autosummary/__init__.py:687:32: EM102 Exception must not use an f-string literal, assign to variable first

Check failure on line 687 in sphinx/ext/autosummary/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (TRY003)

sphinx/ext/autosummary/__init__.py:687:11: TRY003 Avoid specifying long messages outside the exception class


def _import_by_name(name: str, grouped_exception: bool = True) -> tuple[Any, Any, str]:
Expand Down
Loading