Browse Source

Fix untyped call

pull/13626/head
John Mahoney 4 months ago
parent
commit
33feaecb16
  1. 13
      fastapi/routing.py

13
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:

Loading…
Cancel
Save