Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Dec 7, 2023
1 parent bc7fffa commit e66d252
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pyhf/schema/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e66d252

Please sign in to comment.