Skip to content

Commit 02706fc

Browse files
committed
chore: Revert debug message about objects exposed from external modules
1 parent 97f3613 commit 02706fc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/_griffe/loader.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
AliasResolutionError,
1717
CyclicAliasError,
1818
LoadingError,
19-
NameResolutionError,
2019
UnimportableModuleError,
2120
)
2221
from _griffe.expressions import ExprName
@@ -296,15 +295,6 @@ def expand_exports(self, module: Module, seen: set | None = None) -> None:
296295
logger.warning("Unsupported item in %s.__all__: %s (use strings only)", module.path, export)
297296
# It's a string, simply add it to the current exports.
298297
else:
299-
with suppress(NameResolutionError):
300-
if not module.resolve(export).startswith(module.path):
301-
# NOTE: This won't work for built-in attributes during inspection,
302-
# since their canonical module cannot be determined.
303-
logger.debug(
304-
"Name `%s` exported by module `%s` doesn't come from this module or from a submodule.",
305-
export,
306-
module.path,
307-
)
308298
expanded.add(export)
309299
module.exports = expanded
310300

0 commit comments

Comments
 (0)