mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(lazy_imports): type import_map as Mapping to stay under the LIT001 budget
The revert restored the dict annotation that #39121 had loosened to Mapping, and the LIT001 ceiling has been ratcheted down since, so the gate rejected the one reintroduced hit. Annotation only, no behavior change.
This commit is contained in:
parent
45cf1a7ef1
commit
eee162b317
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ def _module_attribute(module: ModuleType, attr_name: str) -> object:
|
|||
return attribute["value"]
|
||||
|
||||
|
||||
def _generic_lazy_import(name: str, import_map: dict[str, tuple[str, str]], category: str) -> object:
|
||||
def _generic_lazy_import(name: str, import_map: Mapping[str, tuple[str, str]], category: str) -> object:
|
||||
"""
|
||||
Generic function that handles lazy importing for most attributes.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue