zulip/zerver/views
Zixuan James Li ab1bbdda65 typing: Broaden type annotations for QuerySet compatibility.
To explain the rationale of this change, for example, there is
`get_user_activity_summary` which accepts either a `Collection[UserActivity]`,
where `QuerySet[T]` is not strictly `Sequence[T]` because its slicing behavior
is different from the `Protocol`, making `Collection` necessary.

Similarily, we should have `Iterable[T]` instead of `List[T]` so that
`QuerySet[T]` will also be an acceptable subtype, or `Sequence[T]` when we
also expect it to be indexed.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-07-07 11:27:42 -07:00
..
development tests: Call client methods with explicit keyword arguments. 2022-06-28 16:12:00 -07:00
__init__.py
alert_words.py actions: Split out zerver.actions.alert_words. 2022-04-14 17:14:31 -07:00
attachments.py actions: Split out zerver.actions.uploads. 2022-04-14 17:14:32 -07:00
auth.py confirmation: Support more models as ConfirmationObjT. 2022-06-29 11:31:07 -07:00
compatibility.py django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
custom_profile_fields.py actions: Split out zerver.actions.custom_profile_fields. 2022-04-14 17:14:33 -07:00
digest.py mypy: Fix most AnonymousUser type errors. 2021-07-24 14:55:46 -07:00
documentation.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
drafts.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
email_mirror.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
events_register.py events: Add support for spectator access to /register. 2022-05-05 15:20:44 -07:00
home.py typing: Add none-checks for miscellaneous cases. 2022-05-31 09:43:55 -07:00
hotspots.py actions: Split out zerver.actions.hotspots. 2022-04-14 17:14:31 -07:00
invite.py invites: Capitalize "ID" in the error raised for invalid stream ids. 2022-05-27 17:06:03 -07:00
message_edit.py actions: Split out zerver.actions.message_edit. 2022-04-14 17:14:36 -07:00
message_fetch.py python: Unquote some unnecessarily quoted type annotations. 2022-06-26 17:37:41 -07:00
message_flags.py message_flags: Filter msgs having (or not) the flag before updating. 2022-07-07 10:52:36 -07:00
message_send.py typing: Avoid redefinition of variables with different types. 2022-06-23 19:25:48 -07:00
muting.py actions: Split out zerver.actions.muted_users. 2022-04-14 17:14:36 -07:00
portico.py middleware: Fix URL encoding of next parameter. 2022-05-12 17:51:51 -07:00
presence.py actions: Split out zerver.actions.presence. 2022-04-14 17:14:32 -07:00
push_notifications.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
reactions.py actions: Split out zerver.actions.reactions. 2022-04-14 17:14:35 -07:00
realm.py confirmation: Support more models as ConfirmationObjT. 2022-06-29 11:31:07 -07:00
realm_domains.py actions: Split out zerver.actions.realm_domains. 2022-04-14 17:14:37 -07:00
realm_emoji.py upload: Add assertions before accessing uploaded files. 2022-06-23 22:09:05 -07:00
realm_export.py actions: Split out zerver.actions.realm_export. 2022-04-14 17:14:31 -07:00
realm_icon.py upload: Add assertions before accessing uploaded files. 2022-06-23 22:09:05 -07:00
realm_linkifiers.py actions: Split out zerver.actions.realm_linkifiers. 2022-04-14 17:14:31 -07:00
realm_logo.py upload: Add assertions before accessing uploaded files. 2022-06-23 22:09:05 -07:00
realm_playgrounds.py actions: Split out zerver.actions.realm_playgrounds. 2022-04-14 17:14:30 -07:00
registration.py typing: Broaden type annotations for QuerySet compatibility. 2022-07-07 11:27:42 -07:00
report.py report: Strengthen report_csp_violations type using WildValue. 2022-03-15 13:02:02 -07:00
storage.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
streams.py typing: Add none-checks for stream.recipient_id. 2022-06-23 19:25:48 -07:00
submessage.py actions: Split out zerver.actions.submessage. 2022-04-14 17:14:30 -07:00
thumbnail.py upload: Allow rate limited access to spectators for uploaded files. 2022-03-24 10:50:00 -07:00
tutorial.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
typing.py actions: Split out zerver.actions.typing. 2022-04-14 17:14:30 -07:00
unsubscribe.py confirmation: Support more models as ConfirmationObjT. 2022-06-29 11:31:07 -07:00
upload.py upload: Add assertions before accessing uploaded files. 2022-06-23 22:09:05 -07:00
user_groups.py user_groups: Rename existing_subgroups variable to existing_direct_subgroup_ids. 2022-05-17 14:51:55 -07:00
user_settings.py user_settings: Add assertions before attribute access. 2022-06-23 19:25:48 -07:00
users.py upload: Add assertions before accessing uploaded files. 2022-06-23 22:09:05 -07:00
video_calls.py actions: Split out zerver.actions.video_calls. 2022-04-14 17:14:30 -07:00
zephyr.py python: Use Python 3.8 shlex.join function. 2022-04-27 12:57:49 -07:00