Skip to content

Commit b83b5e7

Browse files
authored
Update euclidean_distance.py
1 parent 98e355d commit b83b5e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: maths/euclidean_distance.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
from __future__ import annotations
22

33
from collections.abc import Iterable
4-
from typing import Union
54

65
import numpy as np
76

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

1110

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

0 commit comments

Comments
 (0)