Skip to content

Commit

Permalink
Only 'ignore self' if it is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed May 31, 2022
1 parent 17ad4b9 commit c391b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoapi/mappers/python/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _format_args(args_info, include_annotations=True, ignore_self=None):
result = []

for i, (prefix, name, annotation, default) in enumerate(args_info):
if i == 0 and name == ignore_self:
if i == 0 and ignore_self is not None and name == ignore_self:
continue
formatted = "{}{}{}{}".format(
prefix or "",
Expand Down

0 comments on commit c391b68

Please sign in to comment.