Skip to content

Commit

Permalink
Fix type hints for entrypoint decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Jan 24, 2025
1 parent 996b120 commit c04802a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langgraph/langgraph/func/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def my_workflow(number: int, *, previous: Any = None) -> entrypoint.final[int, i
A value will always be saved even if it is None.
"""

def __call__(self, func: types.FunctionType) -> Pregel:
def __call__(self, func: Callable[..., Any]) -> Pregel:
"""Convert a function into a Pregel graph.
Args:
Expand Down

0 comments on commit c04802a

Please sign in to comment.