Skip to content

Commit e0f3ac3

Browse files
committed
Added missing typing
1 parent 97e9fef commit e0f3ac3

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎pgvector/psycopg/bit.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def register_bit_info(context: BaseConnection[Any], info: TypeInfo | None, /) ->
3636

3737

3838
@cache
39-
def bit_text_dumper(oid: int):
39+
def bit_text_dumper(oid: int) -> type[BitDumper]:
4040
return type('', (BitDumper,), {'oid': oid})
4141

4242

4343
@cache
44-
def bit_binary_dumper(oid: int):
44+
def bit_binary_dumper(oid: int) -> type[BitBinaryDumper]:
4545
return type('', (BitBinaryDumper,), {'oid': oid})

‎pgvector/psycopg/halfvec.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def register_halfvec_info(context: BaseConnection[Any], info: TypeInfo, /) -> No
5353

5454

5555
@cache
56-
def halfvec_text_dumper(oid: int):
56+
def halfvec_text_dumper(oid: int) -> type[HalfVectorDumper]:
5757
return type('', (HalfVectorDumper,), {'oid': oid})
5858

5959

6060
@cache
61-
def halfvec_binary_dumper(oid: int):
61+
def halfvec_binary_dumper(oid: int) -> type[HalfVectorBinaryDumper]:
6262
return type('', (HalfVectorBinaryDumper,), {'oid': oid})

‎pgvector/psycopg/sparsevec.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def register_sparsevec_info(context: BaseConnection[Any], info: TypeInfo, /) ->
5353

5454

5555
@cache
56-
def sparsevec_text_dumper(oid: int):
56+
def sparsevec_text_dumper(oid: int) -> type[SparseVectorDumper]:
5757
return type('', (SparseVectorDumper,), {'oid': oid})
5858

5959

6060
@cache
61-
def sparsevec_binary_dumper(oid: int):
61+
def sparsevec_binary_dumper(oid: int) -> type[SparseVectorBinaryDumper]:
6262
return type('', (SparseVectorBinaryDumper,), {'oid': oid})

‎pgvector/psycopg/vector.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def register_vector_info(context: BaseConnection[Any], info: TypeInfo | None, /)
6464

6565

6666
@cache
67-
def vector_text_dumper(oid: int):
67+
def vector_text_dumper(oid: int) -> type[VectorDumper]:
6868
return type('', (VectorDumper,), {'oid': oid})
6969

7070

7171
@cache
72-
def vector_binary_dumper(oid: int):
72+
def vector_binary_dumper(oid: int) -> type[VectorBinaryDumper]:
7373
return type('', (VectorBinaryDumper,), {'oid': oid})

0 commit comments

Comments
 (0)