Skip to content

Commit

Permalink
Disable a new ruff warning about assignment in dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Feb 20, 2025
1 parent d783acc commit 54d39ef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions loopy/kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,14 +1337,11 @@ def __setstate__(self, state):
"linearization",
"iname_slab_increments",
"loop_priority",
# applied_iname_rewrites
"applied_iname_rewrites",
"index_dtype",
"silenced_warnings",

# missing:
# - applied_iname_rewrites
# Contains pymbolic expressions, hence a (small) headache to hash.
# Likely not needed for hash uniqueness => headache avoided.

# - preamble_generators
# - symbol_manglers
Expand All @@ -1355,7 +1352,7 @@ def __setstate__(self, state):
# resolve hash conflicts.
]

update_persistent_hash = update_persistent_hash
update_persistent_hash = update_persistent_hash # noqa: RUF045

@memoize_method
def __hash__(self):
Expand Down

0 comments on commit 54d39ef

Please sign in to comment.