Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typed_endpoint: Add missing tuple comma for OptionalTopic aliases.

Anders Kaseorg8efa4182058a
diff --git a/zerver/lib/typed_endpoint.py b/zerver/lib/typed_endpoint.py
index ed00a7ad302..29734f0b034 100644
--- a/zerver/lib/typed_endpoint.py
+++ b/zerver/lib/typed_endpoint.py
@@ -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