Skip to content

Commit 05cae25

Browse files
committed
ruff format
1 parent 8ef1b27 commit 05cae25

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bson/binary.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,17 @@ def from_vector(cls: Type[Binary], vector: BinaryVector) -> Binary:
405405
@classmethod
406406
@overload
407407
def from_vector(
408-
cls: Type[Binary], vector: list[int | float], dtype: BinaryVectorDtype, padding: int = 0
408+
cls: Type[Binary],
409+
vector: list[Union[int, float]],
410+
dtype: BinaryVectorDtype,
411+
padding: int = 0,
409412
) -> Binary:
410413
...
411414

412415
@classmethod
413416
def from_vector(
414417
cls: Type[Binary],
415-
vector: Union[BinaryVector, list[int | float]],
418+
vector: Union[BinaryVector, list[Union[int, float]]],
416419
dtype: Optional[BinaryVectorDtype] = None,
417420
padding: Optional[int] = None,
418421
) -> Binary:

0 commit comments

Comments
 (0)