litellm icon indicating copy to clipboard operation
litellm copied to clipboard

[Feature]:

Open marhar opened this issue 1 year ago • 0 comments

The Feature

Please add library stubs so that mypy or other python linters can verify proper litellm usage.

mh exercises/litellm_examples% mypy --strict litellm_ollama_1.py 
litellm_ollama_1.py:5: error: Cannot find implementation or library stub for module named "litellm"  [import-not-found]
litellm_ollama_1.py:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

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

marhar avatar Jan 21 '24 01:01 marhar