diff --git a/fastapi/routing.py b/fastapi/routing.py index 84a2840aa..2f09899bc 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -4451,16 +4451,16 @@ class APIRouter(routing.Router): return decorator def combine_tags( - self, - *entities: Annotated[ - None | str | routing.Route | Iterable, - Doc( - """ + 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: