Make new _copy_examples args kwonly

This commit is contained in:
Daniël de Kok 2023-01-31 12:38:55 +01:00
parent 4f9101ee56
commit 8fcec52839

View File

@ -2329,7 +2329,7 @@ class DisabledPipes(list):
def _copy_examples( 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]: ) -> List[Example]:
"""Make a copy of a batch of examples, copying the predicted Doc as well. """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 This is used in contexts where we need to take ownership of the examples