Skip to content

Commit 8ef1b27

Browse files
committed
fixed typing on binary.py
1 parent e4d8449 commit 8ef1b27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/binary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,14 @@ 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], vector: list[int | float], dtype: BinaryVectorDtype, padding: int = 0
409409
) -> Binary:
410410
...
411411

412412
@classmethod
413413
def from_vector(
414414
cls: Type[Binary],
415-
vector: Union[BinaryVector, list[int, float]],
415+
vector: Union[BinaryVector, list[int | float]],
416416
dtype: Optional[BinaryVectorDtype] = None,
417417
padding: Optional[int] = None,
418418
) -> Binary:

0 commit comments

Comments
 (0)