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