Fix pylint unspecified-encoding in _get_variant

This commit is contained in:
J. Nick Koston
2026-03-05 14:12:03 -10:00
parent b4ed8e036a
commit 0d124208e1
+1 -1
View File
@@ -120,7 +120,7 @@ def _get_variant(json_file: Path) -> str | None:
"""Get variant name from a board JSON file."""
if not json_file.exists():
return None
with open(json_file) as f:
with open(json_file, encoding="utf-8") as f:
data = json.load(f)
return data.get("build", {}).get("variant")