Open marhar opened 7 months ago
@marhar do you mind adding a title to this issue?
Also, one type hint that would be useful in litellm==1.40.9
:
foo.py:221:39: error: "ModelResponse" has no attribute "usage"
[attr-defined]
do you mind adding a title to this issue?
added @jamesbraza
Also, one type hint that would be useful in litellm==1.40.9:
We'd love a PR on this @jamesbraza - it's been highly requested
The Feature
Please add library stubs so that mypy or other python linters can verify proper litellm usage.
Motivation, pitch
mypy --strict helps improve the quality of python code. It would be great to ensure that calls to LiteLLM were verified!
Twitter / LinkedIn details
No response