Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #9555: autosummary: Improve error messages on failure to load target object #10031

Merged

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Dec 30, 2021

Feature or Bugfix

  • Feature
  • Refactoring

Purpose

@@ -620,6 +624,18 @@ def limited_join(sep: str, items: List[str], max_chars: int = 30,

# -- Importing items -----------------------------------------------------------


class ImportExceptionGroup(Exception):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -641,26 +657,38 @@ def get_import_prefixes_from_env(env: BuildEnvironment) -> List[str]:
return prefixes


def import_by_name(name: str, prefixes: List[str] = [None]) -> Tuple[str, Any, Any, str]:
def import_by_name(name: str, prefixes: List[str] = [None], grouped_exception: bool = False
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This flag will be changed to enabled by default since v5.0.

@tk0miya tk0miya merged commit b22134d into sphinx-doc:4.x Jan 1, 2022
@tk0miya tk0miya deleted the 9555_ImportExceptionGroup_for_autosummary branch January 1, 2022 10:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant