Skip to content

Commit

Permalink
remove unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Nov 22, 2024
1 parent ab456e8 commit d5fcd6d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pytato/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,18 +342,6 @@ def _augment_array_dataclass(
if generate_hash:
from dataclasses import fields

attr_tuple = ", ".join(f"self.{fld.name}" for fld in fields(cls))
if attr_tuple:
attr_tuple = f"({attr_tuple},)"
else:
attr_tuple = "()"

fld_name_tuple = ", ".join(f"'{fld.name}'" for fld in fields(cls))
if fld_name_tuple:
fld_name_tuple = f"({fld_name_tuple},)"
else:
fld_name_tuple = "()"

# Non-equality tags are automatically excluded from equality in
# EqualityComparer, and are excluded here from hashing.
attr_tuple_hash = ", ".join(f"self.{fld.name}"
Expand Down

0 comments on commit d5fcd6d

Please sign in to comment.