From 0f2de39efbd4158b19e831c45b60960b33d3e979 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 25 Jan 2021 13:00:22 +0100 Subject: [PATCH] Fix types for exclude args in info CLI (#6808) --- spacy/cli/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/info.py b/spacy/cli/info.py index 12b5d6c17..64d597890 100644 --- a/spacy/cli/info.py +++ b/spacy/cli/info.py @@ -34,7 +34,7 @@ def info( *, markdown: bool = False, silent: bool = True, - exclude: List[str] = None, + exclude: Optional[List[str]] = None, ) -> Union[str, dict]: msg = Printer(no_print=silent, pretty=not silent) if not exclude: @@ -105,7 +105,7 @@ def info_model(model: str, *, silent: bool = True) -> Dict[str, Any]: def get_markdown( - data: Dict[str, Any], title: Optional[str] = None, exclude: List[str] = None + data: Dict[str, Any], title: Optional[str] = None, exclude: Optional[List[str]] = None ) -> str: """Get data in GitHub-flavoured Markdown format for issues etc.