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 05cae25 commit 3d7ae53Copy full SHA for 3d7ae53
bson/binary.py
@@ -406,7 +406,7 @@ def from_vector(cls: Type[Binary], vector: BinaryVector) -> Binary:
406
@overload
407
def from_vector(
408
cls: Type[Binary],
409
- vector: list[Union[int, float]],
+ vector: Union[list[int], list[float]],
410
dtype: BinaryVectorDtype,
411
padding: int = 0,
412
) -> Binary:
@@ -415,7 +415,7 @@ def from_vector(
415
@classmethod
416
417
418
- vector: Union[BinaryVector, list[Union[int, float]]],
+ vector: Union[BinaryVector, list[int], list[float]],
419
dtype: Optional[BinaryVectorDtype] = None,
420
padding: Optional[int] = None,
421
0 commit comments