Skip to content

Commit c3c6e15

Browse files
committed
Added missing changelog entry
1 parent 86cf7e2 commit c3c6e15

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

autoapi/extension.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ def viewcode_follow_imported(app, modname, attribute):
264264
if fullname not in all_objects:
265265
return None
266266

267-
if all_objects[fullname].obj.get("type") == 'method':
268-
fullname = fullname[:fullname.rfind('.')]
269-
attribute = attribute[:attribute.rfind('.')]
267+
if all_objects[fullname].obj.get("type") == "method":
268+
fullname = fullname[: fullname.rfind(".")]
269+
attribute = attribute[: attribute.rfind(".")]
270270
while all_objects[fullname].obj.get("original_path", "") != "":
271271
fullname = all_objects[fullname].obj.get("original_path")
272272

docs/changes/+e46a53a8.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed viewcode being unable to find the source code for imported objects

0 commit comments

Comments
 (0)