From e66d252d83c011b9e05a157d2d88fe1fa0a162f4 Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Thu, 7 Dec 2023 15:06:41 +0100 Subject: [PATCH] fix up --- src/pyhf/schema/validator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyhf/schema/validator.py b/src/pyhf/schema/validator.py index 2261d89d7a..24bde469f9 100644 --- a/src/pyhf/schema/validator.py +++ b/src/pyhf/schema/validator.py @@ -103,10 +103,12 @@ def validate( # design, pathlib strips trailing slashes. See ref below: # * https://bugs.python.org/issue21039 # * https://github.com/python/cpython/issues/65238 + + # for type ignores below, see https://github.com/python-jsonschema/jsonschema/issues/997 resolver = jsonschema.RefResolver( base_uri=f"{path.joinpath(version).as_uri()}/", - referrer=schema_name, - store=variables.SCHEMA_CACHE, + referrer=schema_name, # type: ignore[arg-type] + store=variables.SCHEMA_CACHE, # type: ignore[arg-type] ) Validator = jsonschema.Draft202012Validator