Fix types for exclude args in info CLI (#6808)

This commit is contained in:
Adriane Boyd 2021-01-25 13:00:22 +01:00 committed by GitHub
parent 61c9f8bf24
commit 0f2de39efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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.