From e563b874bafaaed9fa28e8bd094fb0b1342dcc9d Mon Sep 17 00:00:00 2001 From: Nir Schulman Date: Sat, 8 Nov 2025 11:11:02 +0200 Subject: [PATCH] Removed backwards compatibility since it doesn't actually preserves compatibility anyways. --- fastapi/dependencies/utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 6a3ee370d..3d51e38a8 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -393,10 +393,6 @@ def get_endpoint_dependant( return dependant -# Kept for backwards compatibility -get_dependant = get_endpoint_dependant - - def add_non_field_param_to_dependency( *, param_name: str, type_annotation: Any, dependant: EndpointDependant ) -> Optional[bool]: