diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 179761d64..2a44495c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.26.0 + rev: v2.28.0 hooks: - id: pyupgrade args: [--py39-plus] diff --git a/supervisor/utils/json.py b/supervisor/utils/json.py index 789fdd112..9dfdffba5 100644 --- a/supervisor/utils/json.py +++ b/supervisor/utils/json.py @@ -27,7 +27,7 @@ class JSONEncoder(json.JSONEncoder): if isinstance(o, Path): return o.as_posix() - return json.JSONEncoder.default(self, o) + return super().default(o) def write_json_file(jsonfile: Path, data: Any) -> None: