Skip to content

Commit

Permalink
russian/*/replicizer.py: Fix type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
F1uctus committed May 8, 2024
1 parent 6ef65e9 commit 8cd13d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttc/language/russian/pipelines/replicizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def flush_replica(*tags: Callable[[Span], Any]):
results = matchers["AUTHOR_INSERTION"](
doc[pt.i : line_end_i + 1], as_spans=True
)
match: Span = next(iter(results), None) # type: ignore
match: Optional[Span] = next(iter(results), None)
if match:
if any(dep_matcher(match)):
flush_replica(is_before_author_insertion)
Expand Down

0 comments on commit 8cd13d2

Please sign in to comment.