We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8395d8 commit fedc315Copy full SHA for fedc315
docs/conf.py
@@ -11,7 +11,6 @@
11
if t.TYPE_CHECKING:
12
from sphinx.application import Sphinx
13
14
-
15
# Get the project root dir, which is the parent dir of this
16
cwd = pathlib.Path(__file__).parent
17
project_root = cwd.parent
@@ -177,7 +176,7 @@
177
176
aafig_default_options = {"scale": 0.75, "aspect": 0.5, "proportional": True}
178
179
180
-def linkcode_resolve(domain, info):
+def linkcode_resolve(domain: str, info: t.Dict[str, str]) -> t.Union[None, str]:
181
"""
182
Determine the URL corresponding to Python object
183
@@ -210,7 +209,8 @@ def linkcode_resolve(domain, info):
210
209
except AttributeError:
211
pass
212
else:
213
- obj = unwrap(obj)
+ if callable(obj):
+ obj = unwrap(obj)
214
215
try:
216
fn = inspect.getsourcefile(obj)
0 commit comments