File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44from typing import Any
55
66
7- class BIT (UserDefinedType ):
7+ class BIT (UserDefinedType [ Any ] ):
88 cache_ok = True
99
1010 def __init__ (self , length : int | None = None ) -> None :
@@ -28,7 +28,7 @@ def process(value: Any) -> Any:
2828 else :
2929 return super ().bind_processor (dialect )
3030
31- class Comparator (TypeEngine .Comparator ):
31+ class Comparator (TypeEngine .Comparator [ Any ] ):
3232 def hamming_distance (self , other : object ) -> Operators :
3333 return self .op ('<~>' , return_type = Float )(other )
3434
Original file line number Diff line number Diff line change 55from .. import HalfVector
66
77
8- class HALFVEC (UserDefinedType ):
8+ class HALFVEC (UserDefinedType [ Any ] ):
99 cache_ok = True
1010 _string = String ()
1111
@@ -35,7 +35,7 @@ def process(value: Any) -> HalfVector | None:
3535 return HalfVector ._from_db (value )
3636 return process
3737
38- class Comparator (TypeEngine .Comparator ):
38+ class Comparator (TypeEngine .Comparator [ Any ] ):
3939 def l2_distance (self , other : object ) -> Operators :
4040 return self .op ('<->' , return_type = Float )(other )
4141
Original file line number Diff line number Diff line change 55from .. import SparseVector
66
77
8- class SPARSEVEC (UserDefinedType ):
8+ class SPARSEVEC (UserDefinedType [ Any ] ):
99 cache_ok = True
1010 _string = String ()
1111
@@ -35,7 +35,7 @@ def process(value: Any) -> SparseVector | None:
3535 return SparseVector ._from_db (value )
3636 return process
3737
38- class Comparator (TypeEngine .Comparator ):
38+ class Comparator (TypeEngine .Comparator [ Any ] ):
3939 def l2_distance (self , other : object ) -> Operators :
4040 return self .op ('<->' , return_type = Float )(other )
4141
Original file line number Diff line number Diff line change 55from .. import Vector
66
77
8- class VECTOR (UserDefinedType ):
8+ class VECTOR (UserDefinedType [ Any ] ):
99 cache_ok = True
1010 _string = String ()
1111
@@ -35,7 +35,7 @@ def process(value: Any) -> Vector | None:
3535 return Vector ._from_db (value )
3636 return process
3737
38- class Comparator (TypeEngine .Comparator ):
38+ class Comparator (TypeEngine .Comparator [ Any ] ):
3939 def l2_distance (self , other : object ) -> Operators :
4040 return self .op ('<->' , return_type = Float )(other )
4141
You can’t perform that action at this time.
0 commit comments