Skip to content

Commit

Permalink
Shape refactor: Fix dataclass slots for Python < 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Dec 22, 2024
1 parent 1efa4b7 commit daadbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phiml/math/_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def as_type(self, new_type: Callable):
return Dim(_apply_prefix(self.name, dim_type), self.size, dim_type, self.slice_names)


@dataclass(frozen=True, **_dataclass_kwargs) # slots not compatible with @cached_property
@dataclass(frozen=True) # slots not compatible with @cached_property
class PureShape:
dim_type: str
dims: Dict[str, Dim]
Expand Down

0 comments on commit daadbea

Please sign in to comment.