Skip to content

Commit

Permalink
Fix PLC0205: Class __slots__ should be a non-string iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad committed Jun 30, 2024
1 parent 320b229 commit 08d85f5
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(object):
__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 @@ -144,7 +144,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
"PLR1704", # Redefining argument with the local name
"PLR6201", # Use a `set` literal when testing for membership
Expand Down

0 comments on commit 08d85f5

Please sign in to comment.