8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9e382 commit 564b716Copy full SHA for 564b716
src/autodoc2/sphinx/docstring.py
@@ -140,7 +140,7 @@ def run(self) -> list[nodes.Node]:
140
)
141
document.reporter.get_source_and_line = lambda li: (
142
source_path,
143
- li + source_offset,
+ li + source_offset if li is not None else None,
144
145
with parsing_context():
146
parser.parse(item["doc"], document)
@@ -215,7 +215,7 @@ def change_source(
215
state.reporter.source = source_path
216
state.reporter.get_source_and_line = lambda li: (
217
218
- li + line_offset,
+ li + line_offset if li is not None else None,
219
220
yield
221
finally:
0 commit comments