Skip to content

Commit

Permalink
Fix typo and add link to CPython issue on GitHub as it is still being…
Browse files Browse the repository at this point in the history
… discussed
  • Loading branch information
matthewfeickert committed Oct 24, 2023
1 parent 21683f0 commit 8fc2326
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pyhf/schema/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ def validate(
schema = load_schema(str(Path(version).joinpath(schema_name)))

# note: trailing slash needed for RefResolver to resolve correctly and by
# design, pathlib strips trailing slashes. See ref bewlow:
# - https://bugs.python.org/issue21039
# design, pathlib strips trailing slashes. See ref below:
# * https://bugs.python.org/issue21039
# * https://github.com/python/cpython/issues/65238
resolver = jsonschema.RefResolver(
base_uri=f"{Path(variables.schemas).joinpath(version).as_uri()}{os.sep}",
referrer=schema_name,
Expand Down

0 comments on commit 8fc2326

Please sign in to comment.