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