Skip to content

Commit 37f2324

Browse files
mtyinaverikitsch
andauthored
fix(graph): allow property names with different cases (googleapis#149)
* fix(graph): allow property names with different cases * Format code --------- Co-authored-by: Averi Kitsch <[email protected]>
1 parent 2738260 commit 37f2324

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/langchain_google_spanner/graph_store.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -901,10 +901,12 @@ def __repr__(self) -> str:
901901
Returns:
902902
str: a string representation of the graph schema.
903903
"""
904-
properties = {
905-
k: TypeUtility.spanner_type_to_schema_str(v)
906-
for k, v in self.properties.items()
907-
}
904+
properties = CaseInsensitiveDict(
905+
{
906+
k: TypeUtility.spanner_type_to_schema_str(v)
907+
for k, v in self.properties.items()
908+
}
909+
)
908910
return json.dumps(
909911
{
910912
"Name of graph": self.graph_name,

0 commit comments

Comments
 (0)