This commit is contained in:
Nuno Campos
2024-10-31 09:40:24 -07:00
parent 0c5c2e6370
commit 2624fc43dd
+1 -1
View File
@@ -342,7 +342,7 @@ class StateGraph(Graph):
ends = EMPTY_SEQ
try:
if isfunction(action) and (
if (isfunction(action) or ismethod(getattr(action, "__call__", None))) and (
hints := get_type_hints(getattr(action, "__call__"))
or get_type_hints(action)
):