diff --git a/zerver/lib/typed_endpoint.py b/zerver/lib/typed_endpoint.py index ed00a7ad30..29734f0b03 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