Skip to content

Commit e104194

Browse files
committed
Update the ruff's validation error
1 parent 75b20c1 commit e104194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: maths/euclidean_distance.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import numpy as np
77

8-
Vector = Union[Iterable[float], Iterable[int], np.ndarray]
9-
VectorOut = Union[np.float64, int, float]
8+
Vector = Iterable[float] | Iterable[int] | np.ndarray
9+
VectorOut = np.float64 | int | float
1010

1111

1212
def euclidean_distance(vector_1: Vector, vector_2: Vector) -> VectorOut:

0 commit comments

Comments
 (0)