From 7601e0b209cf810da63ea74b0072f0521e7d74e6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 19:58:53 +0000 Subject: [PATCH] fix: keep relocated Python and Rust imports formatted --- litellm/integrations/lunary.py | 1 + litellm/rust/crates/gateway-ui/tests/assets.rs | 4 ++-- litellm/rust/crates/host-python/tests/hook_chain.rs | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/litellm/integrations/lunary.py b/litellm/integrations/lunary.py index 08acb2c80dc..a7677c85b3d 100644 --- a/litellm/integrations/lunary.py +++ b/litellm/integrations/lunary.py @@ -6,6 +6,7 @@ from datetime import datetime, timezone from typing import TYPE_CHECKING, Final import packaging + from litellm.llms.anthropic.common_utils import tool_calls_with_server_tool_calls if TYPE_CHECKING: diff --git a/litellm/rust/crates/gateway-ui/tests/assets.rs b/litellm/rust/crates/gateway-ui/tests/assets.rs index 3a996a2acf3..c82d88df46d 100644 --- a/litellm/rust/crates/gateway-ui/tests/assets.rs +++ b/litellm/rust/crates/gateway-ui/tests/assets.rs @@ -225,8 +225,8 @@ async fn unknown_logo_theme_is_rejected_in_the_ui_envelope(dashboard: App) { #[case::monogram_dark("/get_image?theme=dark&variant=monogram")] #[tokio::test] async fn committed_dashboard_export_serves_every_logo(#[case] path: &str) { - let export = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../../proxy/_experimental/out"); + let export = + std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../../proxy/_experimental/out"); let response = litellm_gateway_ui::dashboard_assets(export) .oneshot(Request::get(path).body(Body::empty()).unwrap()) .await diff --git a/litellm/rust/crates/host-python/tests/hook_chain.rs b/litellm/rust/crates/host-python/tests/hook_chain.rs index 5db2bb6490e..2e62734c282 100644 --- a/litellm/rust/crates/host-python/tests/hook_chain.rs +++ b/litellm/rust/crates/host-python/tests/hook_chain.rs @@ -520,8 +520,7 @@ impl litellm_host_python::ExecutionBody for Preparing { fn lifecycle(py: Python<'_>) -> PyResult> { let source = - std::ffi::CString::new(include_str!("../../../../rust_bridge/execution.py")) - .unwrap(); + std::ffi::CString::new(include_str!("../../../../rust_bridge/execution.py")).unwrap(); PyModule::from_code(py, &source, c"execution.py", c"hook_chain_test_lifecycle") }