fix check errors

This commit is contained in:
Evgenii Alekseev 2021-04-04 14:00:42 +03:00
parent 461883217d
commit 56c600e5ac
3 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ def _set_web_parser(root: SubParserAction) -> argparse.ArgumentParser:
return parser
def run():
def run() -> None:
"""
run application instance
"""

View File

@ -52,7 +52,8 @@ class WebClient(Client):
:param exception: exception raised
:return: text of the response if it is not None and empty string otherwise
"""
return exception.response.text if exception.response is not None else ''
result: str = exception.response.text if exception.response is not None else ''
return result
def _ahriman_url(self) -> str:
"""

View File

@ -43,4 +43,3 @@ def test_run_with_package_filter(args: argparse.Namespace, configuration: Config
Status.run(args, "x86_64", configuration)
packages_mock.assert_called_once()