From bcd46240eeb7e4eeb1c99441374d0fded3267e7c Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 21 Dec 2023 15:28:50 +0100 Subject: [PATCH] Vector: Fix type checking --- src/sqlalchemy_cratedb/type/vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlalchemy_cratedb/type/vector.py b/src/sqlalchemy_cratedb/type/vector.py index 9cde7ea2..bca4dc85 100644 --- a/src/sqlalchemy_cratedb/type/vector.py +++ b/src/sqlalchemy_cratedb/type/vector.py @@ -44,7 +44,7 @@ __all__ = ["FloatVector"] -def from_db(value: t.Iterable) -> t.Optional[npt.ArrayLike]: +def from_db(value: t.Iterable) -> t.Optional["npt.ArrayLike"]: import numpy as np # from `pgvector.utils`