mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
80d445a96f
- Add TYPES_NAMES tuple and _lazy_import_types function in _lazy_imports.py - Remove direct import of GuardrailItem from __init__.py - Add lazy loading handler in __getattr__ to dispatch type imports - Add type stub for GuardrailItem in TYPE_CHECKING block - Add test_types_lazy_imports test to verify lazy loading works - Use from __future__ import annotations for forward reference support - Follows same pattern as DOTPROMPT_NAMES and LLM_CONFIG_NAMES for consistency
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.