zulip/zerver
Zixuan James Li 5d524aa43d custom_profile_fields: Use cast to assert non-optional items.
The mypy django-stubs plugin incorrectly infers optional value for order,
which makes the `value_list` to be typed as `Iterable[Optional[int]]`.
We use a type cast here to ensure that
`try_reorder_relam_custom_profile_fields` won't causes mypy to complain
about it.

TODO: Remove the cast when https://github.com/typeddjango/django-stubs/issues/444 gets resovled.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-07-07 11:28:13 -07:00
..
actions realm_settings: Tighten function signatures with generic QuerySet. 2022-07-07 11:28:13 -07:00
data_import user_profile: Fallback to "" for timezone upon creation. 2022-06-28 16:05:24 -07:00
integration_fixtures/nagios
lib users: Tighten function signatures with generic QuerySet. 2022-07-07 11:28:13 -07:00
management soft_deactivation: Tighten function signatures with generic QuerySet. 2022-07-07 11:28:13 -07:00
migrations migrations: Replace NullBooleanField. 2022-07-05 17:52:08 -07:00
openapi help center: Move typing notifications documentation to a separate page. 2022-07-07 10:42:04 -07:00
tests custom_profile_fields: Use cast to assert non-optional items. 2022-07-07 11:28:13 -07:00
tornado tornado: Ignore StreamClosedError. 2022-06-28 16:35:49 -07:00
views typing: Broaden type annotations for QuerySet compatibility. 2022-07-07 11:27:42 -07:00
webhooks slack_incoming: Simplify empty POST test. 2022-07-05 13:08:35 -07:00
worker message_send: Remove unnecessary user_ids argument. 2022-05-04 14:45:18 -07:00
__init__.py
apps.py
context_processors.py typing: Apply trivial fixes to adjust edge cases in typing. 2022-05-30 12:03:51 -07:00
decorator.py decorator: Remove unused Union. 2022-07-06 17:20:57 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py typing: Access LANGUAGE_CODE via `django.utils.translation.get_language`. 2022-06-28 16:07:18 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py middleware: Pass unhandled API exceptions through to the test suite. 2022-06-23 19:23:08 -07:00
models.py models: Tighten function signatures with generic QuerySet. 2022-07-07 11:27:43 -07:00
signals.py django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00