diff --git a/spacy/tests/doc/test_span_group.py b/spacy/tests/doc/test_span_group.py index 67a99ac1f..4b91add2e 100644 --- a/spacy/tests/doc/test_span_group.py +++ b/spacy/tests/doc/test_span_group.py @@ -246,7 +246,7 @@ def test_span_group_dealloc(span_group): @pytest.mark.issue(11975) -def test_iter(doc: Doc): +def test_typing(doc: Doc): span_group: SpanGroup = doc.spans["SPANS"] spans: List[Span] = list(span_group) for i, span in enumerate(span_group): diff --git a/spacy/tokens/span_group.pyx b/spacy/tokens/span_group.pyx index 6b1b3366c..e01a57dfb 100644 --- a/spacy/tokens/span_group.pyx +++ b/spacy/tokens/span_group.pyx @@ -173,7 +173,7 @@ cdef class SpanGroup: def __iter__(self): """ Iterate over the spans in this SpanGroup. - YIELDS (Span): An span in this SpanGroup. + YIELDS (Span): A span in this SpanGroup. DOCS: https://spacy.io/api/spangroup#iter """