diff --git a/ttc/language/russian/pipelines/replicizer.py b/ttc/language/russian/pipelines/replicizer.py index 4d45f1c..0837b03 100644 --- a/ttc/language/russian/pipelines/replicizer.py +++ b/ttc/language/russian/pipelines/replicizer.py @@ -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)