implement explicit Optional type hints for =None parameters

Thanks https://github.com/hauntsaninja/no_implicit_optional
This commit is contained in:
InsanePrawn 2022-11-09 15:22:06 +01:00
parent 669c82a10b
commit 82a87e7ea9
15 changed files with 34 additions and 27 deletions

View file

@ -24,7 +24,7 @@ from image.cli import cmd_image
@verbose_option
@config_option
@nowrapper_option
def cli(verbose: bool = False, config_file: str = None, wrapper_override: Optional[bool] = None, error_shell: bool = False):
def cli(verbose: bool = False, config_file: Optional[str] = None, wrapper_override: Optional[bool] = None, error_shell: bool = False):
setup_logging(verbose)
config.runtime.verbose = verbose
config.runtime.no_wrap = wrapper_override is False