zulip/zerver
Zixuan James Li 4c3c976174 models: Implicitly type model fields with django-stubs.
Previously, we type the model fields with explicit type annotations
manually with the approximate types. This was because the lack of types
for Django.

django-stubs provides more specific types for all these fields that
incompatible with our previous approximate annotations. So now we can
remove the inline type annotations and rely on the types defined in the
stubs. This allows mypy to infer the types of the model fields for us.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-10-05 16:15:56 -07:00
..
actions message_edit: Send only changed settings in event data and api response. 2022-09-28 11:47:40 -07:00
data_import import_util: Make build_message only take kwargs. 2022-09-27 15:04:48 -07:00
integration_fixtures/nagios
lib typing: Use django-stubs' type annotations for QuerySet. 2022-10-05 16:15:56 -07:00
management scim: Downgrade SCIMClient from a model to an ephemeral dataclass. 2022-09-26 11:36:48 -07:00
migrations emoji: Switch users with blob emoji to use Google style. 2022-10-04 12:29:35 -07:00
openapi settings: Explain that Google blob emojis are deprecated. 2022-10-04 12:29:35 -07:00
tests emoji: Finish script to generate emoji_names.py with CLDR data. 2022-10-04 12:29:35 -07:00
tornado tornado: Construct Django BaseHandler once, not per-request. 2022-09-30 11:20:45 -07:00
views message_edit: Send only changed settings in event data and api response. 2022-09-28 11:47:40 -07:00
webhooks integrations: Add incoming webhook macro to relevant docs. 2022-09-09 16:31:33 -07:00
worker message_flags: Fix deadlocks when updating message flags. 2022-09-06 16:06:58 -07:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py templates: Rename `OPEN_GRAPH` variables to `PAGE` or `PAGE_METADATA`. 2022-09-06 14:57:06 -07:00
decorator.py decorator: Rename profile to user_profile. 2022-08-17 12:05:38 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py forms: Fix another 500 error on realm creation with invalid email. 2022-09-19 14:12:32 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py scim: Further slim down SCIMClient removing unused attributes. 2022-09-30 15:34:50 +02:00
models.py models: Implicitly type model fields with django-stubs. 2022-10-05 16:15:56 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00