aboutsummaryrefslogtreecommitdiffstats
path: root/docs/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/utils.py')
-rw-r--r--docs/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/utils.py b/docs/utils.py
index 9d299ebf..c8bbc895 100644
--- a/docs/utils.py
+++ b/docs/utils.py
@@ -64,6 +64,7 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> typin
try:
lines, start = inspect.getsourcelines(symbol[-1])
+ module = inspect.getmodule(symbol[-1])
end = start + len(lines)
except TypeError:
# Find variables by parsing the ast