From 4db8588395d37166fd40daeb2fd6400f357e4351 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 6 Aug 2026 17:30:33 -0700 Subject: [PATCH] fix: suppress windows-footgun false positive on binary tomllib open --- hermes_cli/update_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/update_cmd.py b/hermes_cli/update_cmd.py index cd951c11c2c44..6bf8340f417e7 100644 --- a/hermes_cli/update_cmd.py +++ b/hermes_cli/update_cmd.py @@ -734,7 +734,7 @@ def _read_project_version() -> str | None: try: import tomllib - with open(_m().PROJECT_ROOT / "pyproject.toml", "rb") as fh: + with open(_m().PROJECT_ROOT / "pyproject.toml", "rb") as fh: # windows-footgun: ok — binary mode, tomllib requires bytes version = tomllib.load(fh).get("project", {}).get("version") return str(version) if version else None except Exception: