Subject: Generate correct URL to source code under decorator Origin: vendor Forwarded: https://github.com/selectel/pyxs/pull/17 From: Benjamin Hof Last-Update: 2020-08-06 Applied-Upstream: no --- docs/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/conf.py b/docs/conf.py index a7a0d2a..d378605 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -117,6 +117,7 @@ def linkcode_resolve(domain, info): import inspect import os import pyxs + obj = inspect.unwrap(obj) fn = inspect.getsourcefile(obj) fn = os.path.relpath(fn, os.path.dirname(pyxs.__file__)) source, lineno = inspect.getsourcelines(obj)