From 8e1c3da50d5aff91cbd14e373248205eeed9534d Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 10 Oct 2023 14:37:58 -0500 Subject: [PATCH] Apply suggestion from Sourcery --- src/pyhf/experimental/modifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/experimental/modifiers.py b/src/pyhf/experimental/modifiers.py index 2afc19ad9f..ae5a273214 100644 --- a/src/pyhf/experimental/modifiers.py +++ b/src/pyhf/experimental/modifiers.py @@ -67,7 +67,7 @@ def __init__(self, config): self.config = config def collect(self, thismod, nom): - maskval = True if thismod else False + maskval = bool(thismod) mask = [maskval] * len(nom) return {"mask": mask}