Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return value type of dumpd #20123

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

XinyueZ
Copy link
Contributor

@XinyueZ XinyueZ commented Apr 7, 2024

The return type of json.loads is Any.

In fact, the return type of dumpd must be based on json.loads, so the correction here is understandable.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 7, 2024
Copy link

vercel bot commented Apr 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 4:17pm

@dosubot dosubot bot added the 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature label Apr 7, 2024
Copy link
Collaborator

@baskaryan baskaryan left a comment

Choose a reason for hiding this comment

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

hm given how dumps works i beliee we know this will always be a dict

@ccurme ccurme added the Ɑ: core Related to langchain-core label Jun 19, 2024
@hwchase17 hwchase17 enabled auto-merge (squash) June 19, 2024 23:57
@hwchase17 hwchase17 merged commit cb6cf4b into langchain-ai:master Jun 20, 2024
134 checks passed
hinthornw pushed a commit that referenced this pull request Jun 20, 2024
The return type of `json.loads` is `Any`.

In fact, the return type of `dumpd` must be based on `json.loads`, so
the correction here is understandable.

Co-authored-by: Harrison Chase <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature Ɑ: core Related to langchain-core size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants