INNER CODE UNIT · Python
all_tags
CaddyGlow/ccproxy-api · ccproxy/api/app.py:68
all_tags: list[str | Enum] = router_tags + spec_tags_list
if not all_tags:
return None
# Deduplicate by string value while preserving order
unique: list[str | Enum] = []
seen: set[str] = set()
for t in all_tags:
s = str(t)
if s not in seen:
seen.add(s)
unique.append(t)
return unique
class LifecycleComponent(TypedDict):
name: str
startup: Callable[[FastAPI, Any], Awaitable[None]] | None