mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
mypy: Add types-requests-oauthlib, types-uwsgi.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 0b776e2c15
)
This commit is contained in:
committed by
Tim Abbott
parent
836ab28a75
commit
ea27b848fc
@@ -279,6 +279,8 @@ dev = [
|
||||
"types-redis",
|
||||
"types-regex",
|
||||
"types-requests",
|
||||
"types-requests-oauthlib",
|
||||
"types-uwsgi",
|
||||
"types-zxcvbn",
|
||||
|
||||
# Needed for tools/check-thirdparty
|
||||
@@ -396,14 +398,12 @@ module = [
|
||||
"pyuca.*",
|
||||
"pyvips.*",
|
||||
"re2.*",
|
||||
"requests_oauthlib.*", # https://github.com/requests/requests-oauthlib/issues/428
|
||||
"scim2_filter_parser.attr_paths",
|
||||
"social_django.*",
|
||||
"talon_core.*",
|
||||
"tlds.*",
|
||||
"twitter.*",
|
||||
"two_factor.*",
|
||||
"uwsgi",
|
||||
]
|
||||
ignore_missing_imports = true
|
||||
|
||||
|
26
uv.lock
generated
26
uv.lock
generated
@@ -4740,6 +4740,19 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/15/3700282a9d4ea3b37044264d3e4d1b1f0095a4ebf860a99914fd544e3be3/types_requests-2.32.0.20250328-py3-none-any.whl", hash = "sha256:72ff80f84b15eb3aa7a8e2625fffb6a93f2ad5a0c20215fc1dcfa61117bcb2a2", size = 20663, upload-time = "2025-03-28T02:55:11.946Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "types-requests-oauthlib"
|
||||
version = "2.0.0.20250516"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "types-oauthlib" },
|
||||
{ name = "types-requests" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/fc/7b/1803a83dbccf0698a9fb70a444d12f1dcb0f49a5d8a6327a1e53fac19e15/types_requests_oauthlib-2.0.0.20250516.tar.gz", hash = "sha256:2a384b6ca080bd1eb30a88e14836237dc43d217892fddf869f03aea65213e0d4", size = 11034, upload-time = "2025-05-16T03:09:45.119Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/3c/1bc76f1097cc4978cc97df11524f47559f8927fb2a2807375947bd185189/types_requests_oauthlib-2.0.0.20250516-py3-none-any.whl", hash = "sha256:faf417c259a3ae54c1b72c77032c07af3025ed90164c905fb785d21e8580139c", size = 14343, upload-time = "2025-05-16T03:09:43.874Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "types-s3transfer"
|
||||
version = "0.12.0"
|
||||
@@ -4761,6 +4774,15 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/3f/bf/466fa9faaf6a99dc68c37492693069c99b4f83c73b5bac59649051a74937/types_setuptools-80.3.0.20250505-py3-none-any.whl", hash = "sha256:117c86a82367306388b55310d04da807ff4c3ecdf769656a5fdc0fdd06a2c1b6", size = 63106, upload-time = "2025-05-05T03:06:43.063Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "types-uwsgi"
|
||||
version = "2.0.0.20240516"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/49/7f/34f8caead3fcc68d0ae3431ef18518ba879925ea22e848469f852cc93cb9/types-uWSGI-2.0.0.20240516.tar.gz", hash = "sha256:d0780903b16f151178054cc21534efd6eb1efe2903b39bea3444539942047e3e", size = 6520, upload-time = "2024-05-16T02:21:26.865Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/05/1b8e66e2d2152fb9858d4a452c9b18a048415ec977c7bf673ade17119f8d/types_uWSGI-2.0.0.20240516-py3-none-any.whl", hash = "sha256:f40bf338b1850eab3fa67c5edfd4f75676c14609208d612d88498526a69aca70", size = 7477, upload-time = "2024-05-16T02:21:25.811Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "types-zxcvbn"
|
||||
version = "4.5.0.20250223"
|
||||
@@ -5255,6 +5277,8 @@ dev = [
|
||||
{ name = "types-redis" },
|
||||
{ name = "types-regex" },
|
||||
{ name = "types-requests" },
|
||||
{ name = "types-requests-oauthlib" },
|
||||
{ name = "types-uwsgi" },
|
||||
{ name = "types-zxcvbn" },
|
||||
{ name = "typing-extensions" },
|
||||
{ name = "uri-template" },
|
||||
@@ -5470,6 +5494,8 @@ dev = [
|
||||
{ name = "types-redis" },
|
||||
{ name = "types-regex" },
|
||||
{ name = "types-requests" },
|
||||
{ name = "types-requests-oauthlib" },
|
||||
{ name = "types-uwsgi" },
|
||||
{ name = "types-zxcvbn" },
|
||||
{ name = "typing-extensions" },
|
||||
{ name = "uri-template" },
|
||||
|
@@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 372 # Last bumped to interpret "(no topic)" as empty string
|
||||
# historical commits sharing the same major version, in which case a
|
||||
# minor version bump suffices.
|
||||
|
||||
PROVISION_VERSION = (323, 2) # bumped 2025-06-04 to upgrade uv
|
||||
PROVISION_VERSION = (324, 0) # bumped 2025-06-05 to add types-requests-oauthlib, types-uwsgi
|
||||
|
@@ -5,7 +5,7 @@ from zerver.tornado.django_api import send_event_on_commit
|
||||
|
||||
|
||||
@transaction.atomic(durable=True)
|
||||
def do_set_zoom_token(user: UserProfile, token: dict[str, object] | None) -> None:
|
||||
def do_set_zoom_token(user: UserProfile, /, token: dict[str, object] | None) -> None:
|
||||
user.zoom_token = token
|
||||
user.save(update_fields=["zoom_token"])
|
||||
send_event_on_commit(
|
||||
|
Reference in New Issue
Block a user