diff --git a/libs/langgraph/langgraph/types.py b/libs/langgraph/langgraph/types.py index 0a3c22f34..a227186bb 100644 --- a/libs/langgraph/langgraph/types.py +++ b/libs/langgraph/langgraph/types.py @@ -256,7 +256,7 @@ class Command: ) return f"Command({contents})" - def __eq__(self, value): + def __eq__(self, value: Any) -> bool: return type(value) is type(self) and all( getattr(self, key) == getattr(value, key) for key in self.__all_slots__ )