Open
Description
Summary
For upstream use in cabinetry
, typing of some model config pieces would be convenient. I added something back in #1706 but only just realized that this does not carry through as intended:
import pyhf
model = pyhf.simplemodels.uncorrelated_background(
signal=[12.0, 11.0], bkg=[50.0, 52.0], bkg_uncertainty=[3.0, 7.0]
)
reveal_type(model.config.suggested_fixed())
results in a Revealed type is "Any"
by mypy
. I imagine it gets lost somewhere through how the _ModelConfig
structure is a property of Model
?
Code of Conduct
- I agree to follow the Code of Conduct