mypy tweaks (#10490)

* Move mypy.ini to litellm folder

because that's where GH Actions runs mypy

* Add annotation-unchecked to disable_error_code

so we don't get a zillion of these warnings when running mypy:

```
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
```
This commit is contained in:
Marc Abramowitz 2025-05-01 22:13:14 -07:00 • committed by GitHub
parent 132bdb1380
commit c3d4c9706d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,9 @@ warn_return_any = False
ignore_missing_imports = True
mypy_path = litellm/stubs
namespace_packages = True
disable_error_code = valid-type
disable_error_code =
valid-type,
annotation-unchecked
[mypy-google.*]
ignore_missing_imports = True