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.