From 33feaecb169a389fe609d19b61ebfa69ef9c9437 Mon Sep 17 00:00:00 2001 From: John Mahoney Date: Mon, 21 Apr 2025 12:44:55 -0500 Subject: [PATCH] Fix untyped call --- fastapi/routing.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index dfd206099..84a2840aa 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -4450,7 +4450,18 @@ class APIRouter(routing.Router): return decorator - def combine_tags(self, *entities): + def combine_tags( + self, + *entities: Annotated[ + None | str | routing.Route | Iterable, + Doc( + """ + Combine the router's current tags with those of the provided entities. + Supports None, strings, iterables, and Route objects with a `tags` attribute. + """ + ), + ] + ) -> List[str]: tags = set(self.tags or []) for entity in entities: if entity is None: