Skip to content

Commit e031e3c

Browse files
HenryL27dtecuci
authored andcommitted
fix asdict in the reader too. duh (#907)
Signed-off-by: Henry Lindeman <[email protected]>
1 parent 5cf3b8e commit e031e3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/sycamore/sycamore/connectors/weaviate/weaviate_reader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from dataclasses import dataclass
77
import typing
88
from typing import Optional, Dict, Any
9-
from dataclasses import asdict
109

1110

1211
if typing.TYPE_CHECKING:
@@ -45,7 +44,7 @@ def from_client_params(cls, params: BaseDBReader.ClientParams) -> "WeaviateReade
4544
from weaviate import WeaviateClient
4645

4746
assert isinstance(params, WeaviateReaderClientParams)
48-
client = WeaviateClient(**asdict(params))
47+
client = WeaviateClient(**params.__dict__)
4948
return WeaviateReaderClient(client)
5049

5150
def read_records(self, query_params: BaseDBReader.QueryParams) -> "WeaviateReaderQueryResponse":

0 commit comments

Comments
 (0)