diff --git a/python/lsst/pipe/tasks/configurableActions/_configurableActionStructField.py b/python/lsst/pipe/tasks/configurableActions/_configurableActionStructField.py index a90c8cb20..c459b669a 100644 --- a/python/lsst/pipe/tasks/configurableActions/_configurableActionStructField.py +++ b/python/lsst/pipe/tasks/configurableActions/_configurableActionStructField.py @@ -161,7 +161,7 @@ def _config(self) -> Config: # Config Fields should never outlive their config class instance # assert that as such here value = self._config_() - assert(value is not None) + assert value is not None return value @property diff --git a/python/lsst/pipe/tasks/configurableActions/tests.py b/python/lsst/pipe/tasks/configurableActions/tests.py index 9088d6054..d74608d58 100644 --- a/python/lsst/pipe/tasks/configurableActions/tests.py +++ b/python/lsst/pipe/tasks/configurableActions/tests.py @@ -40,7 +40,7 @@ def __call__(self): return self.var def validate(self): - assert(self.var is not None) + assert self.var is not None class ActionTest2(ConfigurableAction): @@ -50,7 +50,7 @@ def __call__(self): return self.var def validate(self): - assert(self.var is not None) + assert self.var is not None class ActionTest3(ConfigurableAction): @@ -60,7 +60,7 @@ def __call__(self): return self.var def validate(self): - assert(self.var is not None) + assert self.var is not None class TestConfig(Config):