Add comment.

This commit is contained in:
Raphael Mitsch 2022-12-21 11:16:44 +01:00
parent 6e043b3c2b
commit 7bbe5670a6

View File

@ -247,6 +247,7 @@ def test_span_group_dealloc(span_group):
@pytest.mark.issue(11975)
def test_typing(doc: Doc):
"""Tests whether typing of `SpanGroup` as `Iterable[Span]`-like object is accepted by mypy."""
span_group: SpanGroup = doc.spans["SPANS"]
spans: List[Span] = list(span_group)
for i, span in enumerate(span_group):