From 664cbe2867ac2e5a5bf53f62b10f91bd1c7d9958 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Tue, 7 Mar 2023 16:58:43 +0100 Subject: [PATCH] Remove unnecessary conversion to tuple --- spacy/tests/matcher/test_matcher_logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/matcher/test_matcher_logic.py b/spacy/tests/matcher/test_matcher_logic.py index 7d1fad02b..364499b0d 100644 --- a/spacy/tests/matcher/test_matcher_logic.py +++ b/spacy/tests/matcher/test_matcher_logic.py @@ -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)