Skip to content

Commit

Permalink
linkify_issues: Fix mypy issue
Browse files Browse the repository at this point in the history
src/linkify_issues.py:55: error: Argument 1 to "append" of "list" has incompatible type "reference"; expected "Text"  [arg-type]
  • Loading branch information
tony committed Feb 2, 2024
1 parent 3106d0b commit 37b06f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linkify_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def condition(node: nodes.Node) -> bool:

for node in findall(self.document)(condition):
text = node.astext()
retnodes = []
retnodes: list[t.Union[nodes.reference, nodes.Text]] = []
pos = 0
for match in issue_re.finditer(text):
if match.start() > pos:
Expand Down

0 comments on commit 37b06f0

Please sign in to comment.