From f0d4dc2c88e0cb17bd3b3da91c184b9dc5368c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 2 Dec 2025 17:45:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20dangling=20extra=20cond?= =?UTF-8?q?iitonal=20no=20longer=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/routing.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 94e8b0722..c10175b16 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -3,7 +3,6 @@ import email.message import functools import inspect import json -import sys from contextlib import AsyncExitStack, asynccontextmanager from enum import Enum, IntEnum from typing import ( @@ -79,11 +78,6 @@ from starlette.types import AppType, ASGIApp, Lifespan, Receive, Scope, Send from starlette.websockets import WebSocket from typing_extensions import Annotated, deprecated -if sys.version_info >= (3, 13): # pragma: no cover - pass -else: # pragma: no cover - pass - # Copy of starlette.routing.request_response modified to include the # dependencies' AsyncExitStack