File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ warn_unused_configs = true
222222strict = true
223223enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
224224warn_unreachable = true
225+ plugins = " numpy.typing.mypy_plugin"
225226
226227[[tool .mypy .overrides ]]
227228module = [
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ def set_backend(
6565
6666 Example:
6767 >>> import pyhf
68+ >>> pyhf.set_backend(b"jax", precision="32b")
69+ >>> pyhf.tensorlib.name
70+ 'jax'
71+ >>> pyhf.tensorlib.precision
72+ '32b'
6873 >>> pyhf.set_backend(pyhf.tensor.numpy_backend())
6974 >>> pyhf.tensorlib.name
7075 'numpy'
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def reset_backend():
8989def backend (request ):
9090 # a better way to get the id? all the backends we have so far for testing
9191 param_ids = request ._fixturedef .ids
92- # the backend we're using: numpy, etc...
92+ # the backend we're using: numpy, jax, etc...
9393 param_id = param_ids [request .param_index ]
9494 # name of function being called (with params), the original name is .originalname
9595 func_name = request ._pyfuncitem .name
You can’t perform that action at this time.
0 commit comments