From a77dffe4a7386881a6cb9eaf61661f27ce613e90 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 21:35:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/uhi/schema.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/uhi/schema.py b/src/uhi/schema.py index 6e729e8..0af6d36 100644 --- a/src/uhi/schema.py +++ b/src/uhi/schema.py @@ -1,8 +1,9 @@ -import fastjsonschema +from __future__ import annotations import json import sys +import fastjsonschema if sys.version_info < (3, 9): import importlib_resources as resources @@ -16,7 +17,6 @@ def validate(path: str) -> None: - with open(path, encoding="utf-8") as f: example = json.load(f) @@ -24,5 +24,4 @@ def validate(path: str) -> None: if __name__ == "__main__": - validate(*sys.argv[1:])