From 2af7c943e418490dc3ad942e1dbfe4892acf6555 Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Sat, 3 Jan 2026 13:16:50 -0800 Subject: [PATCH] fix(utils): suppress PLR0915 linter warning for __getattr__ function The __getattr__ function intentionally has many statements to handle multiple lazy-loaded imports. Add noqa comment to suppress the warning. --- litellm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index 372c07ed997..cc48851ed1a 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -8697,7 +8697,7 @@ def should_run_mock_completion( return False -def __getattr__(name: str) -> Any: +def __getattr__(name: str) -> Any: # noqa: PLR0915 """Lazy import handler for utils module""" _globals = _get_utils_globals()