Skip to content

Commit

Permalink
Merge pull request #1165 from IntelPython/fix/range_types_name
Browse files Browse the repository at this point in the history
Improve __str__ for range_types
  • Loading branch information
Diptorup Deb authored Oct 12, 2023
2 parents b9f4542 + 5b36457 commit 1dda097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numba_dpex/core/types/range_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, ndim: int):
raise errors.TypingError(
"RangeType can only have 1,2, or 3 dimensions"
)
super(RangeType, self).__init__(name="Range")
super(RangeType, self).__init__(name="Range<" + str(ndim) + ">")

@property
def ndim(self):
Expand All @@ -44,7 +44,7 @@ def __init__(self, ndim: int):
raise errors.TypingError(
"RangeType can only have 1,2, or 3 dimensions"
)
super(NdRangeType, self).__init__(name="NdRange")
super(NdRangeType, self).__init__(name="NdRange<" + str(ndim) + ">")

@property
def ndim(self):
Expand Down

0 comments on commit 1dda097

Please sign in to comment.