File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def db_type(self, connection):
2121 return 'bit'
2222 return 'bit(%d)' % self .length
2323
24- def formfield (self , ** kwargs ):
24+ def formfield (self , ** kwargs ): # type: ignore
2525 return super ().formfield (form_class = BitFormField , ** kwargs )
2626
2727
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def get_prep_value(self, value):
4040 def value_to_string (self , obj ):
4141 return self .get_prep_value (self .value_from_object (obj ))
4242
43- def formfield (self , ** kwargs ):
43+ def formfield (self , ** kwargs ): # type: ignore
4444 return super ().formfield (form_class = HalfVectorFormField , ** kwargs )
4545
4646
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def get_prep_value(self, value):
3535 def value_to_string (self , obj ):
3636 return self .get_prep_value (self .value_from_object (obj ))
3737
38- def formfield (self , ** kwargs ):
38+ def formfield (self , ** kwargs ): # type: ignore
3939 return super ().formfield (form_class = SparseVectorFormField , ** kwargs )
4040
4141
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def run_validators(self, value):
4848 value = value .tolist ()
4949 super ().run_validators (value )
5050
51- def formfield (self , ** kwargs ):
51+ def formfield (self , ** kwargs ): # type: ignore
5252 return super ().formfield (form_class = VectorFormField , ** kwargs )
5353
5454
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ def jaccard_distance(self, other):
3535
3636
3737# for reflection
38- ischema_names ['bit' ] = BIT
38+ ischema_names ['bit' ] = BIT # type: ignore
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def literal_processor(self, dialect):
2525 string_literal_processor = self ._string ._cached_literal_processor (dialect )
2626
2727 def process (value ):
28- return string_literal_processor (HalfVector ._to_db (value , self .dim ))
28+ return string_literal_processor (HalfVector ._to_db (value , self .dim )) # type: ignore
2929 return process
3030
3131 def result_processor (self , dialect , coltype ):
@@ -48,4 +48,4 @@ def l1_distance(self, other):
4848
4949
5050# for reflection
51- ischema_names ['halfvec' ] = HALFVEC
51+ ischema_names ['halfvec' ] = HALFVEC # type: ignore
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def literal_processor(self, dialect):
2525 string_literal_processor = self ._string ._cached_literal_processor (dialect )
2626
2727 def process (value ):
28- return string_literal_processor (SparseVector ._to_db (value , self .dim ))
28+ return string_literal_processor (SparseVector ._to_db (value , self .dim )) # type: ignore
2929 return process
3030
3131 def result_processor (self , dialect , coltype ):
@@ -48,4 +48,4 @@ def l1_distance(self, other):
4848
4949
5050# for reflection
51- ischema_names ['sparsevec' ] = SPARSEVEC
51+ ischema_names ['sparsevec' ] = SPARSEVEC # type: ignore
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def literal_processor(self, dialect):
2525 string_literal_processor = self ._string ._cached_literal_processor (dialect )
2626
2727 def process (value ):
28- return string_literal_processor (Vector ._to_db (value , self .dim ))
28+ return string_literal_processor (Vector ._to_db (value , self .dim )) # type: ignore
2929 return process
3030
3131 def result_processor (self , dialect , coltype ):
@@ -48,4 +48,4 @@ def l1_distance(self, other):
4848
4949
5050# for reflection
51- ischema_names ['vector' ] = VECTOR
51+ ischema_names ['vector' ] = VECTOR # type: ignore
You can’t perform that action at this time.
0 commit comments