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 0fa939e commit 6d0df0eCopy full SHA for 6d0df0e
docs/source/conf.py
@@ -177,6 +177,11 @@ def linkcode_resolve(domain, info):
177
for part in info['fullname'].split('.'):
178
obj = getattr(obj, part)
179
180
+ # Skip decorator wrappers by checking if the object is a function
181
+ # and has a __wrapped__ attribute (which decorators typically set)
182
+ while hasattr(obj, '__wrapped__'):
183
+ obj = obj.__wrapped__
184
+
185
if not (inspect.isclass(obj) or inspect.isfunction(obj)
186
or inspect.ismethod(obj)):
187
obj = obj.__class__ # Get the class of the instance
0 commit comments