Skip to content

Commit 3d7ae53

Browse files
committed
use Union[list]
1 parent 05cae25 commit 3d7ae53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/binary.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def from_vector(cls: Type[Binary], vector: BinaryVector) -> Binary:
406406
@overload
407407
def from_vector(
408408
cls: Type[Binary],
409-
vector: list[Union[int, float]],
409+
vector: Union[list[int], list[float]],
410410
dtype: BinaryVectorDtype,
411411
padding: int = 0,
412412
) -> Binary:
@@ -415,7 +415,7 @@ def from_vector(
415415
@classmethod
416416
def from_vector(
417417
cls: Type[Binary],
418-
vector: Union[BinaryVector, list[Union[int, float]]],
418+
vector: Union[BinaryVector, list[int], list[float]],
419419
dtype: Optional[BinaryVectorDtype] = None,
420420
padding: Optional[int] = None,
421421
) -> Binary:

0 commit comments

Comments
 (0)