Skip to content

Commit d3b7d67

Browse files
committed
Remove dpnp.object_ type alias
1 parent 7dda3db commit d3b7d67

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

dpnp/dpnp_iface_types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"nan",
7171
"newaxis",
7272
"number",
73-
"object_",
7473
"signedinteger",
7574
"single",
7675
"singlecomplex",
@@ -103,7 +102,6 @@
103102
intc = numpy.intc
104103
longcomplex = numpy.longcomplex
105104
number = numpy.number
106-
object_ = numpy.object_
107105
signedinteger = numpy.signedinteger
108106
single = numpy.single
109107
singlecomplex = numpy.singlecomplex

dpnp/dpnp_utils/dpnp_algo_utils.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ cdef tuple get_shape_dtype(object input_obj):
418418

419419
# shape and dtype does not match with siblings.
420420
if ((return_shape != elem_shape) or (return_dtype != elem_dtype)):
421-
return (elem_shape, dpnp.dtype(dpnp.object_))
421+
return (elem_shape, dpnp.dtype(numpy.object_))
422422

423423
list_shape.push_back(len(input_obj))
424424
list_shape.insert(list_shape.end(), return_shape.begin(), return_shape.end())

0 commit comments

Comments
 (0)