Closed nejch closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
litellm | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 18, 2024 10:16am |
thanks @nejch
how can we improve here? Will probably have more cleanups as we look to improve code quality. Would like to avoid these errors!
thanks @nejch
how can we improve here? Will probably have more cleanups as we look to improve code quality. Would like to avoid these errors!
Thanks for the merge @krrishdholakia!
The way I'd do it is also enable typing for tests covering a particular module, that way if mypy complains about production code typing usage inside the test, you get a pretty good idea of what kinds of errors a user would also see.
@nejch what would a module in this context be?
e2e example would be helpful for me
(really appreciate your help here!)
fix: add more type hints to init methods
This just adds a few type hints to user-facing init methods. Seems like recent additions to typing made mypy complain about unnecessary ignores, but removing that exposes more issues, e.g.:
Relevant issues
Related to https://github.com/BerriAI/litellm/issues/4206
Type
🐛 Bug Fix
Changes
Typing changes only, so no added tests.