Skip to content

Commit

Permalink
fix: RUF012
Browse files Browse the repository at this point in the history
Mutable class args. we don't want type annotations.
  • Loading branch information
paquiteau committed Feb 19, 2024
1 parent e57a9dc commit bd31f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modopt/opt/linear/wavelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def _adj_op(self, coeffs):
class TorchWaveletTransform:
"""Wavelet transform using pytorch."""

wavedec3_keys = ["aad", "ada", "add", "daa", "dad", "dda", "ddd"]
wavedec3_keys = ("aad", "ada", "add", "daa", "dad", "dda", "ddd")

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_matrix2cube(self):
class TestType:
"""Test for type module."""

data_list = list(range(5))
data_list = list(range(5)) # noqa: RUF012
data_int = np.arange(5)
data_flt = np.arange(5).astype(float)

Expand Down

0 comments on commit bd31f35

Please sign in to comment.