Skip to content

Commit

Permalink
Silence ruff linting error ARG002: unused method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Oct 30, 2024
1 parent 608467b commit e4a225d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, *args, **kwargs):
"eigenvalues": [],
}

def update(self, specific=""):
def update(self, specific=""): # noqa: ARG002
if self.input_structure is None:
self.applicable_kinds = []
self.orbital_labels = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, *args, **kwargs):
"moments": {},
}

def update(self, specific=""):
def update(self, specific=""): # noqa: ARG002
if self.spin_type == "none" or self.input_structure is None:
self._defaults["moments"] = {}
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(self, *args, **kwargs):
"cutoffs": [[0.0], [0.0]],
}

def update(self, specific=""):
def update(self, specific=""): # noqa: ARG002
with self.hold_trait_notifications():
if self.input_structure is None:
self._defaults |= {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, *args, **kwargs):
"degauss": self.traits()["degauss"].default_value,
}

def update(self, specific=""):
def update(self, specific=""): # noqa: ARG002
parameters = (
PwBaseWorkChain.get_protocol_inputs(self.protocol)
.get("pw", {})
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/plugins/xas/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, *args, **kwargs):

self.installed_pseudos = False

def update(self, specific=""):
def update(self, specific=""): # noqa: ARG002
with self.hold_trait_notifications():
self._update_pseudos()
self._update_core_hole_treatment_recommendations()
Expand Down

0 comments on commit e4a225d

Please sign in to comment.