File tree Expand file tree Collapse file tree
weaviate/collections/classes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from pydantic import ConfigDict , Field
1919from typing_extensions import ClassVar , TypeGuard , TypeVar
2020
21+ from weaviate .collections .classes .filters import FilterReturn
2122from weaviate .collections .classes .types import _WeaviateInput
2223from weaviate .exceptions import WeaviateInvalidInputError
2324from weaviate .proto .v1 import base_search_pb2
@@ -297,7 +298,7 @@ class _PropertyValueFunction:
297298
298299@dataclass
299300class _BoostCondition :
300- filter : Optional [Any ] = None # noqa: A003 # FilterReturn
301+ filter : Optional [FilterReturn ] = None # noqa: A003
301302 time_decay : Optional [_TimeDecayFunction ] = None
302303 numeric_decay : Optional [_NumericDecayFunction ] = None
303304 property_value : Optional [_PropertyValueFunction ] = None
@@ -359,7 +360,7 @@ def __init__(self) -> None:
359360
360361 @staticmethod
361362 def filter ( # noqa: A003
362- filter : Any , # noqa: A002
363+ filter : FilterReturn , # noqa: A002
363364 * ,
364365 weight : Optional [float ] = None ,
365366 depth : Optional [int ] = None ,
You can’t perform that action at this time.
0 commit comments