Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: DarkLight1337 <[email protected]>
  • Loading branch information
DarkLight1337 committed Dec 3, 2024
1 parent a14c475 commit 042e9d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def linkcode_resolve(domain, info):
for part in info['fullname'].split('.'):
obj = getattr(obj, part)

if not inspect.isclass(obj) and not inspect.isfunction(obj) and not inspect.ismethod(obj):
if not (inspect.isclass(obj) or inspect.isfunction(obj)
or inspect.ismethod(obj)):
obj = obj.__class__ # Get the class of the instance

lineno = inspect.getsourcelines(obj)[1]
Expand Down

0 comments on commit 042e9d3

Please sign in to comment.