From 04a59d0e9da123dc04f118813eb8d08a0d35a434 Mon Sep 17 00:00:00 2001 From: Numerlor Date: Sun, 17 Jul 2022 13:30:41 +0200 Subject: [PATCH] Correctly determine source modules for re-exported symbols --- docs/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/utils.py b/docs/utils.py index bb8074ba0..cb4ffd500 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