Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoapi/_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs):

Can be only be: async.
"""
self.overloads: list[tuple[str, str]] = [
self.overloads: list[tuple[str, str | None]] = [
(_format_args(args), return_annotation)
for args, return_annotation in self.obj["overloads"]
]
Expand Down
1 change: 1 addition & 0 deletions docs/changes/523.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `PythonFunction.overloads` typing when source code overload(s) do not provide a return type