Skip to content

Commit

Permalink
refactor: Prepare for Griffe 0.37
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 12, 2023
1 parent 574b234 commit b5bb8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [
]
dependencies = [
"mkdocstrings>=0.20",
"griffe>=0.35",
"griffe>=0.37",
]

[project.urls]
Expand Down
4 changes: 2 additions & 2 deletions src/mkdocstrings_handlers/python/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def collect(self, identifier: str, config: Mapping[str, Any]) -> CollectorItem:
try:
for pre_loaded_module in final_config.get("preload_modules") or []:
if pre_loaded_module not in self._modules_collection:
loader.load_module(pre_loaded_module)
loader.load_module(module_name)
loader.load(pre_loaded_module)
loader.load(module_name)
except ImportError as error:
raise CollectionError(str(error)) from error
unresolved, iterations = loader.resolve_aliases(
Expand Down

0 comments on commit b5bb8a9

Please sign in to comment.