From c3d4c9706d4ee24ba9652483b303ecd71f0b6300 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Thu, 1 May 2025 22:13:14 -0700 Subject: [PATCH] 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] ``` --- mypy.ini => litellm/mypy.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename mypy.ini => litellm/mypy.ini (72%) diff --git a/mypy.ini b/litellm/mypy.ini similarity index 72% rename from mypy.ini rename to litellm/mypy.ini index bb0e9ec8719..df3c6ed5c7b 100644 --- a/mypy.ini +++ b/litellm/mypy.ini @@ -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