zulip/zerver
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
..
actions muted_topics: Clean up unmute topic event code duplication. 2022-08-04 17:44:00 -07:00
data_import import_util: Post-modify date fields with float values. 2022-08-01 13:58:12 -07:00
integration_fixtures/nagios
lib request: Refactor has_request_variables with ParamSpec. 2022-08-06 16:19:48 -07:00
management realm: Create RealmAuditLog entry when removing realm linkifiers. 2022-07-31 18:32:28 -07:00
migrations user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
openapi user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
tests user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
tornado user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
views request: Refactor has_request_variables with ParamSpec. 2022-08-06 16:19:48 -07:00
webhooks python: Use a real parser for email addresses. 2022-07-29 15:47:33 -07:00
worker queue_processor: Fix type annotation for connection. 2022-07-26 18:00:24 -07:00
__init__.py
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py footer: Reduce links for self-hosted installations on signup pages. 2022-07-22 15:46:42 -07:00
decorator.py decorator: Refactor decorators expecting UserProfile with ParamSpec. 2022-08-06 16:19:48 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py python: Use a real parser for email addresses. 2022-07-29 15:47:33 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py request: Refactor remote_server into RequestNotes. 2022-07-28 09:38:40 -07:00
models.py user_topic: Add user_topic event. 2022-08-04 17:44:00 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00