summaryrefslogtreecommitdiffstats
path: root/docs/utils.py
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2022-09-18 19:10:24 +0200
committerGravatar Numerlor <[email protected]>2022-09-18 19:14:08 +0200
commitb6f033e7f5fcdb827e7fed29a4ed21108e54a414 (patch)
tree99be74f8d90217e8d2dbeba442afce7ea04d5de6 /docs/utils.py
parentensure tuples from pos arg and kwarg tuples are differentiated (diff)
parentMerge pull request #138 from python-discord/bump-d.py (diff)
Merge remote-tracking branch 'upstream/main' into no-duplicate-deco
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