From 7ae41b53efb1d115b5dd8bc126708ff822c3762f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:43:55 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1648) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/streetsidesoftware/cspell-cli: v8.2.0 → v8.2.1](https://github.com/streetsidesoftware/cspell-cli/compare/v8.2.0...v8.2.1) - [github.com/pre-commit/mirrors-mypy.git: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy.git/compare/v1.7.1...v1.8.0) * fix mypy error --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: shatakshiiii --- .pre-commit-config.yaml | 4 ++-- src/ansible_navigator/ui_framework/curses_window.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08cb7d49e..ab0c58c36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,7 +52,7 @@ repos: - "--exit-non-zero-on-fix" - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.2.0 + rev: v8.2.1 hooks: - id: cspell name: Spell check with cspell @@ -150,7 +150,7 @@ repos: - id: pyupgrade args: ["--py39-plus"] - repo: https://github.com/pre-commit/mirrors-mypy.git - rev: v1.7.1 + rev: v1.8.0 hooks: - id: mypy additional_dependencies: diff --git a/src/ansible_navigator/ui_framework/curses_window.py b/src/ansible_navigator/ui_framework/curses_window.py index 93841a16a..b3113c596 100644 --- a/src/ansible_navigator/ui_framework/curses_window.py +++ b/src/ansible_navigator/ui_framework/curses_window.py @@ -195,7 +195,7 @@ def _set_colors(self) -> None: self._logger.debug("term_osc4_support: %s", self._term_osc4_support) if self._term_osc4_support: - with self._ui_config.terminal_colors_path.open(mode="r", encoding="utf-8") as fh: + with self._ui_config.terminal_colors_path.open("r", encoding="utf-8") as fh: colors = json.load(fh) for color_name, color_hex in colors.items():