zulip/zerver
Zixuan James Li a3a0545aac typing: Populate POST and _files with `cast` and `setattr`.
`POST` is an immutable attribute and `_files` is an internal attribute
of `HttpRequest`. With type annotations provided by `django-stubs`, mypy
stops us from modifying these attributes. This uses `cast` and `setattr`
to avoid typing issues.

This is a part of django-stubs refactorings.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-06-28 16:07:18 -07:00
..
actions change_realm_subdomain: Support skipping the redirect. 2022-06-25 08:44:24 -07:00
data_import user_profile: Fallback to "" for timezone upon creation. 2022-06-28 16:05:24 -07:00
integration_fixtures/nagios
lib logging_util: Save an assertion with __getitem__. 2022-06-28 16:05:24 -07:00
management change_realm_subdomain: Support skipping the redirect. 2022-06-25 08:44:24 -07:00
migrations typing: Fix typical typing typos. 2022-06-23 19:25:48 -07:00
openapi markdown: Rename preprocessor_priorities module to priorities. 2022-06-26 17:36:31 -07:00
tests typing: Access LANGUAGE_CODE via `django.utils.translation.get_language`. 2022-06-28 16:07:18 -07:00
tornado tornado: Make _request an attribute on AsyncDjangoHandler. 2022-06-28 16:03:09 -07:00
views typing: Access LANGUAGE_CODE via `django.utils.translation.get_language`. 2022-06-28 16:07:18 -07:00
webhooks integrations: Satisfy Python-Markdown’s archaic 4-space requirement. 2022-06-27 17:36:17 -07:00
worker message_send: Remove unnecessary user_ids argument. 2022-05-04 14:45:18 -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 typing: Apply trivial fixes to adjust edge cases in typing. 2022-05-30 12:03:51 -07:00
decorator.py typing: Populate POST and _files with `cast` and `setattr`. 2022-06-28 16:07:18 -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 typing: Correct type annotation of supported_backends. 2022-06-23 22:09:05 -07:00
signals.py django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00