From 105cf2996785961a2c6bf717c3d80736daaa1c60 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 29 Jul 2020 14:23:13 +0200 Subject: [PATCH] Fix DocBin --- spacy/tokens/_serialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/_serialize.py b/spacy/tokens/_serialize.py index 0a5fd0c59..bc371199a 100644 --- a/spacy/tokens/_serialize.py +++ b/spacy/tokens/_serialize.py @@ -50,7 +50,7 @@ class DocBin: self, attrs: Iterable[str] = ALL_ATTRS, store_user_data: bool = False, - docs=Iterable[Doc], + docs: Iterable[Doc]=[], ) -> None: """Create a DocBin object to hold serialized annotations.