Rename test. Fix typo.

This commit is contained in:
Raphael Mitsch 2022-12-21 10:58:53 +01:00
parent f8137fa951
commit 6e043b3c2b
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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
"""