We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e355d commit b83b5e7Copy full SHA for b83b5e7
maths/euclidean_distance.py
@@ -1,12 +1,11 @@
1
from __future__ import annotations
2
3
from collections.abc import Iterable
4
-from typing import Union
5
6
import numpy as np
7
8
-Vector = Union[Iterable[float], Iterable[int], np.ndarray]
9
-VectorOut = Union[np.float64, int, float]
+Vector = Iterable[float] | Iterable[int] | np.ndarray
+VectorOut = np.float64 | int | float
10
11
12
def euclidean_distance(vector_1: Vector, vector_2: Vector) -> VectorOut:
0 commit comments