Skip to content

Commit 050edb7

Browse files
committed
try without casts
1 parent da2fd7f commit 050edb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fast_array_utils/_plugins/numba_sparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, dmm: object, fe_type: CS2DType) -> None:
121121

122122

123123
def unbox_matrix(typ: CS2DType, obj: CSBase, c: UnboxContext) -> NativeValue:
124-
struct_proxy_cls = cast("type[cgutils._StructProxy]", cgutils.create_struct_proxy(typ)) # noqa: SLF001
124+
struct_proxy_cls = cgutils.create_struct_proxy(typ)
125125
struct_ptr = struct_proxy_cls(c.context, c.builder)
126126

127127
data = c.pyapi.object_getattr_string(obj, "data")
@@ -207,7 +207,7 @@ def _construct(
207207
args: tuple[CS2DType, nbtypes.Array, nbtypes.Array, nbtypes.Array, nbtypes.UniTuple],
208208
) -> NativeValue:
209209
typ = sig.return_type
210-
struct_proxy_cls = cast("type[cgutils._StructProxy]", cgutils.create_struct_proxy(typ)) # noqa: SLF001
210+
struct_proxy_cls = cgutils.create_struct_proxy(typ)
211211
struct = struct_proxy_cls(context, builder)
212212
_, data, indices, indptr, shape = args
213213
struct.data = data

0 commit comments

Comments
 (0)