Skip to content

Commit

Permalink
use keys not items (langchain-ai#12918)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 authored Nov 6, 2023
1 parent 60d025b commit aba407f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/langchain/langchain/schema/runnable/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class ConfigurableFieldSingleOption(NamedTuple):
description: Optional[str] = None

def __hash__(self) -> int:
return hash((self.id, tuple(self.options.items()), self.default))
return hash((self.id, tuple(self.options.keys()), self.default))


class ConfigurableFieldMultiOption(NamedTuple):
Expand All @@ -287,7 +287,7 @@ class ConfigurableFieldMultiOption(NamedTuple):
description: Optional[str] = None

def __hash__(self) -> int:
return hash((self.id, tuple(self.options.items()), tuple(self.default)))
return hash((self.id, tuple(self.options.keys()), tuple(self.default)))


AnyConfigurableField = Union[
Expand Down

0 comments on commit aba407f

Please sign in to comment.