mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-11 02:22:48 +00:00
Update litellm/proxy/policy_engine/policy_resolve_endpoints.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
committed by
Julio Quinteros Pro
co-authored by
greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
parent
e6385a6c83
commit
ca9cdea8a7
@@ -12,9 +12,7 @@ from typing import TYPE_CHECKING
|
||||
try:
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query
|
||||
except ImportError:
|
||||
# Provide stubs for type checking only
|
||||
if TYPE_CHECKING:
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query
|
||||
# Provide stubs for environments without FastAPI
|
||||
else:
|
||||
# Create mock classes that won't be used
|
||||
class APIRouter: # type: ignore[no-redef]
|
||||
|
||||
Reference in New Issue
Block a user