Proposal: Improve static type checking across modules (via mypy) #30682
ArmaanjeetSandhu
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
I'd like to propose improving the overall static type checking coverage in the LangChain codebase. While type hints are present in many places, running
mypy
still surfaces a number of type errors and inconsistencies.This work would involve:
Any
or# type: ignore
unless necessaryMotivation
This proposal stems from running
mypy
on the latest version of LangChain and encountering various errors and missing type info. For example,libs/langchain/langchain
has these errors:Proposal (If applicable)
I'd be happy to start this process by selecting a small, self-contained module, resolving its type errors, and opening a PR.
Before doing so, I'd like to confirm:
Looking forward to your feedback!
Beta Was this translation helpful? Give feedback.
All reactions