diff --git a/spacy/util.py b/spacy/util.py index 76a1e0bfa..3034808ba 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -443,9 +443,9 @@ def load_model_from_package( name: str, *, vocab: Union["Vocab", bool] = True, - disable: Union[str, Iterable[str]] = _DEFAULT_EMPTY_PIPES, - enable: Union[str, Iterable[str]] = _DEFAULT_EMPTY_PIPES, - exclude: Union[str, Iterable[str]] = _DEFAULT_EMPTY_PIPES, + disable: Union[str, Iterable[str]] = SimpleFrozenList(), + enable: Union[str, Iterable[str]] = SimpleFrozenList(), + exclude: Union[str, Iterable[str]] = SimpleFrozenList(), config: Union[Dict[str, Any], Config] = SimpleFrozenDict(), ) -> "Language": """Load a model from an installed package. @@ -619,9 +619,9 @@ def load_model_from_init_py( init_file: Union[Path, str], *, vocab: Union["Vocab", bool] = True, - disable: Union[str, Iterable[str]] = _DEFAULT_EMPTY_PIPES, - enable: Union[str, Iterable[str]] = _DEFAULT_EMPTY_PIPES, - exclude: Union[str, Iterable[str]] = _DEFAULT_EMPTY_PIPES, + disable: Union[str, Iterable[str]] = SimpleFrozenList(), + enable: Union[str, Iterable[str]] = SimpleFrozenList(), + exclude: Union[str, Iterable[str]] = SimpleFrozenList(), config: Union[Dict[str, Any], Config] = SimpleFrozenDict(), ) -> "Language": """Helper function to use in the `load()` method of a model package's