10000 CLN Removes unused fused type (#22727) · scikit-learn/scikit-learn@ce7bb4c · GitHub
[go: up one dir, main page]

Skip to content

Commit ce7bb4c

Browse files
authored
CLN Removes unused fused type (#22727)
1 parent 7d9f1ca commit ce7bb4c

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

sklearn/metrics/_dist_metrics.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ from libc.math cimport fabs, sqrt, exp, pow, cos, sin, asin
2929
cdef DTYPE_t INF = np.inf
3030

3131
from scipy.sparse import csr_matrix, issparse
32-
from ..utils._typedefs cimport DTYPE_t, ITYPE_t, DITYPE_t, DTYPECODE
32+
from ..utils._typedefs cimport DTYPE_t, ITYPE_t, DTYPECODE
3333
from ..utils._typedefs import DTYPE, ITYPE
3434
from ..utils._readonly_array_wrapper import ReadonlyArrayWrapper
3535
from ..utils import check_array

sklearn/metrics/_pairwise_distances_reduction.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ from ..utils._cython_blas cimport (
4040
)
4141
from ..utils._heap cimport simultaneous_sort, heap_push
4242
from ..utils._openmp_helpers cimport _openmp_thread_num
43-
from ..utils._typedefs cimport ITYPE_t, DTYPE_t, DITYPE_t
43+
from ..utils._typedefs cimport ITYPE_t, DTYPE_t
4444
from ..utils._typedefs cimport ITYPECODE, DTYPECODE
4545

4646
from numbers import Integral, Real

sklearn/utils/_typedefs.pxd

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@ cdef enum:
1111
# Index/integer type.
1212
# WARNING: ITYPE_t must be a signed integer type or you will have a bad time!
1313
ctypedef np.intp_t ITYPE_t # WARNING: should match ITYPE in typedefs.pyx
14-
15-
# Fused type for certain operations
16-
ctypedef fused DITYPE_t:
17-
ITYPE_t
18-
DTYPE_t

0 commit comments

Comments
 (0)
0