Skip to content

Commit b367d86

Browse files
committed
Fixed typechecking [skip ci]
1 parent 410b02c commit b367d86

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_peewee.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from peewee import Model, PostgresqlDatabase, fn
33
from pgvector import HalfVector, SparseVector, Vector
44
from pgvector.peewee import VectorField, HalfVectorField, FixedBitField, SparseVectorField
5+
from typing import Any
56

67
db = PostgresqlDatabase('pgvector_python_test')
78

@@ -12,6 +13,7 @@ class Meta:
1213

1314

1415
class Item(BaseModel):
16+
id: Any # for typing
1517
embedding = VectorField(dimensions=3, null=True)
1618
half_embedding = HalfVectorField(dimensions=3, null=True)
1719
binary_embedding = FixedBitField(max_length=3, null=True)

0 commit comments

Comments
 (0)