Skip to content

Commit

Permalink
chore: Revert debug message about objects exposed from external modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Aug 20, 2024
1 parent 97f3613 commit 02706fc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/_griffe/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
AliasResolutionError,
CyclicAliasError,
LoadingError,
NameResolutionError,
UnimportableModuleError,
)
from _griffe.expressions import ExprName
Expand Down Expand Up @@ -296,15 +295,6 @@ def expand_exports(self, module: Module, seen: set | None = None) -> None:
logger.warning("Unsupported item in %s.__all__: %s (use strings only)", module.path, export)
# It's a string, simply add it to the current exports.
else:
with suppress(NameResolutionError):
if not module.resolve(export).startswith(module.path):
# NOTE: This won't work for built-in attributes during inspection,
# since their canonical module cannot be determined.
logger.debug(
"Name `%s` exported by module `%s` doesn't come from this module or from a submodule.",
export,
module.path,
)
expanded.add(export)
module.exports = expanded

Expand Down

0 comments on commit 02706fc

Please # to comment.