From 50ea206665aa99c1197ab675a4f48079a12cdafd Mon Sep 17 00:00:00 2001 From: John Mahoney Date: Mon, 21 Apr 2025 16:06:33 -0500 Subject: [PATCH] Fix typings for earlier python versions --- fastapi/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 84a2840aa..e0ea705f3 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -4453,7 +4453,7 @@ class APIRouter(routing.Router): def combine_tags( self, *entities: Annotated[ - None | str | routing.Route | Iterable, + Union[None, str, routing.Route, Sequence], Doc( """ Combine the router's current tags with those of the provided entities.