Skip to content
Open
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 sphinx/ext/autodoc/_dynamic/_type_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_type_comment(obj: Any, bound_method: bool = False) -> Signature | None:
return signature_from_ast(subject, bound_method, function)
else:
return None
except (OSError, TypeError): # failed to load source code
except (OSError, TypeError, IndexError): # failed to load source code
return None
except SyntaxError: # failed to parse type_comments
return None
Expand Down
Loading