From 7ce767251276142867293b8fed98799f4b633e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Mon, 30 Jan 2023 10:11:51 +0100 Subject: [PATCH] Fix labels type in docstring --- spacy/language.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 73e1b8629..ae3809728 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1346,9 +1346,9 @@ class Language: get_examples (Callable[[], Iterable[Example]]): Optional function that returns gold-standard Example objects. - labels (Dict[str, Any]): Labels to pass to pipe initialization, using - the names of the pipes as keys. Overrides labels that are in the - model configuration. + labels (Optional[Dict[str, Any]]): Labels to pass to pipe initialization, + using the names of the pipes as keys. Overrides labels that are in + the model configuration. sgd (Optional[Optimizer]): An optimizer to use for updates. If not provided, will be created using the .create_optimizer() method. RETURNS (thinc.api.Optimizer): The optimizer.