Skip to content

Conversation

@cbornet
Copy link
Collaborator

@cbornet cbornet commented Dec 8, 2025

If we also have #32813 , then we can activate no-return-any detection in mypy.

@github-actions github-actions bot added langchain `langchain` package issues & PRs infra PRs made that include chores, devops, repo meta changes labels Dec 8, 2025
result = func(state, runtime)
if isawaitable(result):
return await result
return result
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can't get there but mypy doesn't detect it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a case like this I'd rather type ignore (and same for the below), could we maybe just add a note?

@github-actions github-actions bot added infra PRs made that include chores, devops, repo meta changes and removed infra PRs made that include chores, devops, repo meta changes labels Dec 8, 2025
@cbornet cbornet requested a review from mdrxy December 8, 2025 18:05
@cbornet cbornet force-pushed the langchain-no-return-any branch from 9779c25 to 070388c Compare December 9, 2025 16:50
Copy link
Collaborator

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than this, thanks!

result = func(state, runtime)
if isawaitable(result):
return await result
return result
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a case like this I'd rather type ignore (and same for the below), could we maybe just add a note?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra PRs made that include chores, devops, repo meta changes langchain `langchain` package issues & PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants