Skip to content

Commit 919ab40

Browse files
committed
Simplify some imports
1 parent 719512d commit 919ab40

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

python/pylibcudf/pylibcudf/column.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ from pylibcudf.libcudf.interop cimport (
2525
to_arrow_device_raw,
2626
to_arrow_schema_raw,
2727
)
28+
from pylibcudf.libcudf.null_mask cimport bitmask_allocation_size_bytes
2829
from pylibcudf.libcudf.scalar.scalar cimport scalar
2930
from pylibcudf.libcudf.strings.strings_column_view cimport strings_column_view
3031
from pylibcudf.libcudf.types cimport size_type, size_of as cpp_size_of, bitmask_type
@@ -50,7 +51,6 @@ from ._interop_helpers cimport (
5051
_release_device_array,
5152
_metadata_to_libcudf,
5253
)
53-
from .null_mask cimport bitmask_allocation_size_bytes
5454
from .utils cimport _get_stream
5555

5656
from .gpumemoryview import _datatype_from_dtype_desc
@@ -90,12 +90,10 @@ cdef class OwnerWithCAI:
9090
# The default size of 0 will be applied for any type that stores data in the
9191
# children (such that the parent size is 0).
9292
size = 0
93-
cdef column_view offsets_column
94-
cdef unique_ptr[scalar] last_offset
9593
if cv.type().id() == type_id.EMPTY:
9694
size = cv.size()
9795
elif is_fixed_width(cv.type()):
98-
# Cast to Python integers before multiplyling to avoid overflow.
96+
# Cast to Python integers before multiplying to avoid overflow.
9997
size = int(cv.size()) * int(cpp_size_of(cv.type()))
10098
elif cv.type().id() == type_id.STRING:
10199
# TODO: stream-ordered

0 commit comments

Comments
 (0)