From da0591486385c78cc537df785a01d27b7e190b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Wed, 9 Jun 2021 21:35:08 +0200 Subject: [PATCH] Support latest `mypy` release (#468) --- setup.py | 4 ++++ webviz_config/_deployment/azure_cli.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5db015cf..8753cbb7 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,10 @@ def get_long_description() -> str: "pylint", "pytest-xdist", "selenium", + "types-bleach", + "types-markdown", + "types-pyyaml", + "types-requests", ] # pylint: disable=line-too-long diff --git a/webviz_config/_deployment/azure_cli.py b/webviz_config/_deployment/azure_cli.py index bc1f5977..f959f4b4 100644 --- a/webviz_config/_deployment/azure_cli.py +++ b/webviz_config/_deployment/azure_cli.py @@ -36,7 +36,7 @@ def _azure_cli(args: List[str], devnull_stderr: bool = True) -> Any: # Therefore cleaning the root logger as suggested in # https://github.com/pytest-dev/pytest/issues/5502#issuecomment-647157873 loggers = [logging.getLogger()] + list( - logging.Logger.manager.loggerDict.values() # type: ignore[attr-defined] + logging.Logger.manager.loggerDict.values() # type: ignore[attr-defined, arg-type] ) for logger in loggers: handlers = getattr(logger, "handlers", [])