mirror of https://github.com/tiangolo/fastapi.git
Fix untyped call
This commit is contained in:
parent
220190fb38
commit
33feaecb16
|
|
@ -4450,7 +4450,18 @@ class APIRouter(routing.Router):
|
||||||
|
|
||||||
return decorator
|
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 [])
|
tags = set(self.tags or [])
|
||||||
for entity in entities:
|
for entity in entities:
|
||||||
if entity is None:
|
if entity is None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue