Skip to content

Commit

Permalink
Fix PLC0205: Class __slots__ should be a non-string iterable (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad authored Jul 1, 2024
1 parent a9f90de commit dcdc34e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion nornir/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcdc34e

Please sign in to comment.