zulip/analytics/views
Zixuan James Li ca0d2f6854 decorator: Refactor decorators expecting UserProfile with ParamSpec.
Decorators like `require_server_admin_api` turns user_profile into a
positional-only parameter, requiring the callers to stop passing it as a
keyword argument.

Functions like `get_chart_data` that gets decorated by both
`require_non_guest_user` and `has_request_variables` now have accurate
type annotation during type checking, with the first two parameters
turned into positional-only, and thus the change in
`analytics.views.stats`.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-06 16:19:48 -07:00
..
__init__.py
activity_common.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00
installation_activity.py analytics: Add Composable type annotations. 2022-07-30 06:46:34 -07:00
realm_activity.py analytics: Tighten function signatures with generic QuerySet. 2022-07-07 11:27:43 -07:00
stats.py decorator: Refactor decorators expecting UserProfile with ParamSpec. 2022-08-06 16:19:48 -07:00
support.py realm_reactivation: Prevent realm reactivation link reuse. 2022-07-26 17:14:26 -07:00
user_activity.py user_activity: Tighten function signatures with generic QuerySet. 2022-07-07 11:27:43 -07:00