Fix untyped call

This commit is contained in:
John Mahoney 2025-04-21 12:44:55 -05:00
parent 220190fb38
commit 33feaecb16
1 changed files with 12 additions and 1 deletions

View File

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