Skip to content

Commit

Permalink
Support latest mypy release (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Jun 9, 2021
1 parent 7bfa2a9 commit da05914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion webviz_config/_deployment/azure_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", [])
Expand Down

0 comments on commit da05914

Please sign in to comment.