mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
test(proxy): import LoginThrottle under TYPE_CHECKING for the throttle helper annotation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0da2f5b96c
commit
65765d6550
1 changed files with 4 additions and 1 deletions
|
|
@ -8,11 +8,14 @@ to login_utils.py for better reusability.
|
|||
import os
|
||||
from collections.abc import Mapping
|
||||
from contextlib import ExitStack
|
||||
from typing import Final
|
||||
from typing import TYPE_CHECKING, Final
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from litellm.proxy.auth.login_throttle import LoginThrottle
|
||||
|
||||
|
||||
def _unlimited_throttle():
|
||||
"""A throttle wired to real in-memory stores with limits no test can reach."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue