From 8fcec528391b1a187358a7671d3ebe8f8222807e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Tue, 31 Jan 2023 12:38:55 +0100 Subject: [PATCH] Make new `_copy_examples` args kwonly --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index bc0fc8be1..5029499a3 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -2329,7 +2329,7 @@ class DisabledPipes(list): def _copy_examples( - examples: Iterable[Example], copy_x: bool = True, copy_y: bool = False + examples: Iterable[Example], *, copy_x: bool = True, copy_y: bool = False ) -> List[Example]: """Make a copy of a batch of examples, copying the predicted Doc as well. This is used in contexts where we need to take ownership of the examples