Skip to content

Commit

Permalink
Use DType.without_shape
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhigley committed Feb 3, 2023
1 parent 74f0436 commit 327c62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merlin/dtypes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def to(self, mapping_name: str):
) from exc

try:
return mapping.from_merlin(replace(self, shape=None))
return mapping.from_merlin(self.without_shape)
except KeyError as exc:
raise ValueError(
f"The registered dtype mapping for {mapping_name} doesn't contain type {self.name}."
Expand Down

0 comments on commit 327c62a

Please sign in to comment.