zulip/analytics
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
..
lib analytics: Add Composable type annotations. 2022-07-30 06:46:34 -07:00
management streams: Set can_remove_subscribers_group while creating streams. 2022-09-14 16:03:11 -07:00
migrations typing: Use BaseDatabaseSchemaEditor in place of DatabaseSchemaEditor. 2022-05-30 14:18:53 -07:00
tests streams: Set can_remove_subscribers_group while creating streams. 2022-09-14 16:03:11 -07:00
views decorator: Refactor decorators expecting UserProfile with ParamSpec. 2022-08-06 16:19:48 -07:00
__init__.py
models.py models: Implicitly type model fields with django-stubs. 2022-10-05 16:15:56 -07:00
urls.py analytics: Use user IDs to get user activity summaries. 2021-10-13 15:30:27 -07:00