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 35c8a7e commit 03b4095Copy full SHA for 03b4095
doc/source/conf.py
@@ -653,12 +653,20 @@ def linkcode_resolve(domain, info):
653
try:
654
fn = inspect.getsourcefile(inspect.unwrap(obj))
655
except TypeError:
656
- fn = None
+ try: # property
657
+ fn = inspect.getsourcefile(inspect.unwrap(obj.fget))
658
+ except (AttributeError, TypeError):
659
+ fn = None
660
if not fn:
661
return None
662
663
664
source, lineno = inspect.getsourcelines(obj)
665
+ except TypeError:
666
667
+ source, lineno = inspect.getsourcelines(obj.fget)
668
669
+ lineno = None
670
except OSError:
671
lineno = None
672
0 commit comments