From 62266fb8286e0918366b9488b4aa4a38b9d49437 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 29 Jul 2020 14:49:49 +0200 Subject: [PATCH] Fix broken type annotation --- 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..192067ed4 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] = tuple(), ) -> None: """Create a DocBin object to hold serialized annotations.