We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810c948 commit 264da1aCopy full SHA for 264da1a
src/lazydocs/generation.py
@@ -965,7 +965,8 @@ def generate_docs(
965
continue
966
967
try:
968
- mod = loader.find_module(module_name).load_module(module_name) # type: ignore
+ mod_spec = loader.find_spec(module_name)
969
+ mod = importlib.util.module_from_spec(mod_spec)
970
module_md = generator.module2md(mod)
971
if not module_md:
972
# Module md is empty -> ignore module and all submodules
@@ -1041,9 +1042,8 @@ def generate_docs(
1041
1042
1043
1044
- mod = loader.find_module(module_name).load_module( # type: ignore
1045
- module_name
1046
- )
1047
1048
1049
0 commit comments