mypy: Fix event_types annotation.

This commit is contained in:
Steve Howell
2020-06-19 16:11:05 +00:00
committed by Steve Howell
parent 87cca3a234
commit 9cde534cf4

View File

@@ -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),