aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-07-23 15:48:11 +0200
committerGravatar GitHub <[email protected]>2022-07-23 15:48:11 +0200
commit2dd2236eff1411f0680c8f3cd0344390b95ab476 (patch)
tree8a298eb66495d2bae6890a3082042fdac0b802ca /docs
parentUpdate changelog.rst (diff)
parentMerge PR #105: Correctly determine source modules for re-exported symbols (diff)
Merge branch 'main' into bot-core-100
Diffstat (limited to 'docs')
-rw-r--r--docs/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/utils.py b/docs/utils.py
index bb8074ba..cb4ffd50 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