mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Correct ruff failures (#8732)
* fix: Correct ruff problems
* updating DIRECTORY.md
* fix: Fix pre-commit errors
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
793e564e1d
commit
1faf10b5c2
@@ -1,12 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
from collections.abc import Iterable
|
||||
from typing import Union
|
||||
|
||||
import numpy as np
|
||||
|
||||
Vector = Union[Iterable[float], Iterable[int], np.ndarray]
|
||||
VectorOut = Union[np.float64, int, float]
|
||||
Vector = typing.Union[Iterable[float], Iterable[int], np.ndarray] # noqa: UP007
|
||||
VectorOut = typing.Union[np.float64, int, float] # noqa: UP007
|
||||
|
||||
|
||||
def euclidean_distance(vector_1: Vector, vector_2: Vector) -> VectorOut:
|
||||
|
||||
Reference in New Issue
Block a user