Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add contextlib support to pyhf.schema API #1818

Merged
merged 14 commits into from
Mar 23, 2022
Prev Previous commit
feickert comments
  • Loading branch information
kratsg committed Mar 23, 2022
commit d111ca7a7e854b66a8b632d6f509d0bebe7074f7
2 changes: 1 addition & 1 deletion src/pyhf/schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class Schema(sys.modules[__name__].__class__):

>>> import pyhf.schema
>>> import pathlib
>>> new_path = pathlib.Path("/home/root/my/new/path")
>>> curr_path = pyhf.schema.path
>>> curr_path # doctest: +ELLIPSIS
PosixPath('.../pyhf/schemas')
>>> new_path = pathlib.Path("/home/root/my/new/path")
>>> pyhf.schema(new_path) # doctest: +ELLIPSIS
<module 'pyhf.schema' from ...>
>>> pyhf.schema.path
Expand Down