Remove unnecessary conversion to tuple

This commit is contained in:
Adriane Boyd 2023-03-07 16:58:43 +01:00 committed by GitHub
parent 31cd5141bd
commit 664cbe2867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ def test_issue242(en_tokenizer):
# One token can only be part of one entity, so test that the matches
# can't be added as entities
matches_spans = matcher(doc, as_spans=True)
doc.ents += tuple(matches_spans)
doc.ents += matches_spans
@pytest.mark.issue(587)