mirror of https://github.com/explosion/spaCy.git
Fix types for exclude args in info CLI (#6808)
This commit is contained in:
parent
61c9f8bf24
commit
0f2de39efb
|
@ -34,7 +34,7 @@ def info(
|
||||||
*,
|
*,
|
||||||
markdown: bool = False,
|
markdown: bool = False,
|
||||||
silent: bool = True,
|
silent: bool = True,
|
||||||
exclude: List[str] = None,
|
exclude: Optional[List[str]] = None,
|
||||||
) -> Union[str, dict]:
|
) -> Union[str, dict]:
|
||||||
msg = Printer(no_print=silent, pretty=not silent)
|
msg = Printer(no_print=silent, pretty=not silent)
|
||||||
if not exclude:
|
if not exclude:
|
||||||
|
@ -105,7 +105,7 @@ def info_model(model: str, *, silent: bool = True) -> Dict[str, Any]:
|
||||||
|
|
||||||
|
|
||||||
def get_markdown(
|
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:
|
) -> str:
|
||||||
"""Get data in GitHub-flavoured Markdown format for issues etc.
|
"""Get data in GitHub-flavoured Markdown format for issues etc.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue