We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 416f842 commit 2d10e9cCopy full SHA for 2d10e9c
doc/source/conf.py
@@ -569,7 +569,11 @@ def linkcode_resolve(domain, info):
569
return None
570
571
try:
572
- fn = inspect.getsourcefile(obj)
+ # inspect.unwrap() was added in Python version 3.4
573
+ if sys.version_info >= (3, 5):
574
+ fn = inspect.getsourcefile(inspect.unwrap(obj))
575
+ else:
576
+ fn = inspect.getsourcefile(obj)
577
except:
578
fn = None
579
if not fn:
0 commit comments