Skip to content

Commit 949d920

Browse files
committed
explicit TypeAlias
1 parent d9450ed commit 949d920

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ovrlpy/_kde.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
_TRUNCATE = 4
2020

2121
Shape1D = tuple[int]
22-
Array1D = np.ndarray[Shape1D, np.dtype]
23-
Array1D_Int = np.ndarray[Shape1D, np.dtype[np.integer]]
22+
Array1D: TypeAlias = np.ndarray[Shape1D, np.dtype]
23+
Array1D_Int: TypeAlias = np.ndarray[Shape1D, np.dtype[np.integer]]
2424

2525
Coordinate: TypeAlias = Array1D | pl.Series
2626

27-
KDE_2D = np.ndarray[tuple[int, int], np.dtype[np.floating]]
28-
KDE_ND = np.ndarray[tuple[int, ...], np.dtype[np.floating]]
27+
KDE_2D: TypeAlias = np.ndarray[tuple[int, int], np.dtype[np.floating]]
28+
KDE_ND: TypeAlias = np.ndarray[tuple[int, ...], np.dtype[np.floating]]
2929

3030

3131
def kde_2d_discrete(

0 commit comments

Comments
 (0)