mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
Update spacy/tests/doc/test_span_group.py
Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
This commit is contained in:
parent
cb9bf70a24
commit
a64ac73a76
|
@ -246,7 +246,7 @@ def test_span_group_dealloc(span_group):
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.issue(11975)
|
@pytest.mark.issue(11975)
|
||||||
def test_typing(doc: Doc):
|
def test_span_group_typing(doc: Doc):
|
||||||
"""Tests whether typing of `SpanGroup` as `Iterable[Span]`-like object is accepted by mypy."""
|
"""Tests whether typing of `SpanGroup` as `Iterable[Span]`-like object is accepted by mypy."""
|
||||||
span_group: SpanGroup = doc.spans["SPANS"]
|
span_group: SpanGroup = doc.spans["SPANS"]
|
||||||
spans: List[Span] = list(span_group)
|
spans: List[Span] = list(span_group)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user