From 8e7a8018bcdaa54162462dd85a65143fdfb6476c Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 16 Dec 2024 16:21:57 +1100 Subject: [PATCH] * nemo/utils.py (MultiSetter.__init__): Fix Ruff warning (TRY003). --- nemo/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nemo/utils.py b/nemo/utils.py index 9a58c94d..8be8a24e 100644 --- a/nemo/utils.py +++ b/nemo/utils.py @@ -69,7 +69,8 @@ def __init__(self, *args): self.setters = [setter[0] for setter in args] for setter in self.setters: if not callable(setter): - raise TypeError("setter not callable") + msg = "setter not callable" + raise TypeError(msg) def set_capacity(self, value): """Broadcast value to all setters."""