diff --git a/sqlalchemy_utils/types/ts_vector.py b/sqlalchemy_utils/types/ts_vector.py index 793e6e5f..11845a16 100644 --- a/sqlalchemy_utils/types/ts_vector.py +++ b/sqlalchemy_utils/types/ts_vector.py @@ -84,6 +84,10 @@ class Article(Base): impl = TSVECTOR cache_ok = True + @property + def python_type(self) -> type[str]: + return str + class comparator_factory(TSVECTOR.Comparator): def match(self, other, **kwargs): if 'postgresql_regconfig' not in kwargs: @@ -105,4 +109,4 @@ def __init__(self, *args, **kwargs): """ self.columns = args self.options = kwargs - super().__init__() + super().__init__() \ No newline at end of file