Skip to content

Commit

Permalink
Added missing changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
AWhetter committed Jun 10, 2023
1 parent 86cf7e2 commit c3c6e15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoapi/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ def viewcode_follow_imported(app, modname, attribute):
if fullname not in all_objects:
return None

if all_objects[fullname].obj.get("type") == 'method':
fullname = fullname[:fullname.rfind('.')]
attribute = attribute[:attribute.rfind('.')]
if all_objects[fullname].obj.get("type") == "method":
fullname = fullname[: fullname.rfind(".")]
attribute = attribute[: attribute.rfind(".")]
while all_objects[fullname].obj.get("original_path", "") != "":
fullname = all_objects[fullname].obj.get("original_path")

Expand Down
1 change: 1 addition & 0 deletions docs/changes/+e46a53a8.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed viewcode being unable to find the source code for imported objects

0 comments on commit c3c6e15

Please sign in to comment.