typed_endpoint: Add missing tuple comma for OptionalTopic aliases.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-12 11:15:27 -07:00
committed by Anders Kaseorg
parent 9abb850cd9
commit 8efa418205

View File

@@ -106,7 +106,7 @@ PathOnly: TypeAlias = Annotated[T, ApiParamConfig(path_only=True)]
OptionalTopic: TypeAlias = Annotated[
Optional[str],
StringConstraints(strip_whitespace=True),
ApiParamConfig(whence="topic", aliases=("subject")),
ApiParamConfig(whence="topic", aliases=("subject",)),
]
# Reusable annotation metadata for Annotated types