File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
if t .TYPE_CHECKING :
12
12
from sphinx .application import Sphinx
13
13
14
-
15
14
# Get the project root dir, which is the parent dir of this
16
15
cwd = pathlib .Path (__file__ ).parent
17
16
project_root = cwd .parent
177
176
aafig_default_options = {"scale" : 0.75 , "aspect" : 0.5 , "proportional" : True }
178
177
179
178
180
- def linkcode_resolve (domain , info ) :
179
+ def linkcode_resolve (domain : str , info : t . Dict [ str , str ]) -> t . Union [ None , str ] :
181
180
"""
182
181
Determine the URL corresponding to Python object
183
182
@@ -210,7 +209,8 @@ def linkcode_resolve(domain, info):
210
209
except AttributeError :
211
210
pass
212
211
else :
213
- obj = unwrap (obj )
212
+ if callable (obj ):
213
+ obj = unwrap (obj )
214
214
215
215
try :
216
216
fn = inspect .getsourcefile (obj )
You can’t perform that action at this time.
0 commit comments