Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sqlalchemy_utils/types/ts_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -105,4 +109,4 @@ def __init__(self, *args, **kwargs):
"""
self.columns = args
self.options = kwargs
super().__init__()
super().__init__()