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 11from dataclasses import dataclass
22from enum import Enum , auto
33from typing import (
4- ClassVar ,
4+ Any ,
55 Dict ,
66 Generic ,
77 List ,
1515)
1616
1717from pydantic import ConfigDict , Field
18- from typing_extensions import TypeGuard , TypeVar
18+ from typing_extensions import ClassVar , TypeGuard , TypeVar
1919
2020from weaviate .collections .classes .types import _WeaviateInput
2121from weaviate .exceptions import WeaviateInvalidInputError
@@ -244,7 +244,8 @@ class Rerank(_WeaviateInput):
244244
245245@dataclass
246246class KeywordOperatorOptions :
247- operator : ClassVar [base_search_pb2 .SearchOperatorOptions .Operator ]
247+ # replace with ClassVar[base_search_pb2.SearchOperatorOptions.Operator] once python 3.10 is removed
248+ operator : ClassVar [Any ]
248249
249250
250251@dataclass
You can’t perform that action at this time.
0 commit comments