Skip to content

Commit

Permalink
fix: Register top module after inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Dec 2, 2022
1 parent b73a0ef commit 86454ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/griffe/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def load_module( # noqa: WPS231
logger.debug(f"Trying inspection on {module}")
module_name = module # type: ignore[assignment]
top_module = self._inspect_module(module) # type: ignore[arg-type]
self.modules_collection[top_module.path] = top_module
else:
raise
else:
Expand Down

0 comments on commit 86454ec

Please sign in to comment.