diff --git a/nornir/core/configuration.py b/nornir/core/configuration.py index 9705345e..543d2bc1 100644 --- a/nornir/core/configuration.py +++ b/nornir/core/configuration.py @@ -211,7 +211,7 @@ def dict(self) -> Dict[str, Any]: class CoreConfig: - __slots__ = "raise_on_error" + __slots__ = ("raise_on_error",) class Parameters: raise_on_error = Parameter(default=False, envvar="NORNIR_CORE_RAISE_ON_ERROR") diff --git a/pyproject.toml b/pyproject.toml index 6669cdb6..a0d34149 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,7 +161,6 @@ ignore = [ "PERF203", # `try`-`except` within a loop incurs performance overhead "PGH004", # Use specific rule codes when using `noqa` "PIE800", # Unnecessary spread `**` - "PLC0205", # Class `__slots__` should be a non-string iterable "PLC2801", # Unnecessary dunder call to `__getattribute__`. Access attribute directly or use getattr built-in function "PLR6201", # Use a `set` literal when testing for membership "PLR6301", # Method `run` could be a function, class method, or static method