-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Feature]: Add LiteLLM Type stubs for mypy #360
Comments
can I get some more info on exactly what to do here? I wanna work on this issue. |
You can start by adding type hints to this project and using mypy in CI to check this project's type safety 😄 |
A quick thing you can do is simply create a file called I get this error when I run
Which I was able to workaround with: touch venv/lib/python3.12/site-packages/litellm/py.typed A better method is to generate library stubs, |
@mikeslattery We'd love a PR on this if possible . Will give you a shoutout on release notes too |
@ishaan-jaff Done. Someone else already did it in a more complex PR. See my PR description. |
feature - Types for mypy - issue #360
The Feature
Request from @nsbradford on this
Motivation, pitch
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: