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.

mypy: Fix event_types annotation.

Steve Howell9cde534cf404
diff --git a/zerver/tornado/views.py b/zerver/tornado/views.py
index 04fef432dd2..40105d3f77b 100644
--- a/zerver/tornado/views.py
+++ b/zerver/tornado/views.py
@@ -69,8 +69,8 @@ def get_events_backend(request: HttpRequest, user_profile: UserProfile,
intentionally_undocumented=True),
all_public_streams: bool=REQ(default=False, validator=check_bool,
intentionally_undocumented=True),
- event_types: Optional[str]=REQ(default=None, validator=check_list(check_string),
- intentionally_undocumented=True),
+ event_types: Optional[Sequence[str]]=REQ(default=None, validator=check_list(check_string),
+ intentionally_undocumented=True),
dont_block: bool=REQ(default=False, validator=check_bool),
narrow: Iterable[Sequence[str]]=REQ(default=[], validator=check_list(None),
intentionally_undocumented=True),