Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: Add types-requests-oauthlib, types-uwsgi.

Anders Kaseorg0b776e2c1507
diff --git a/pyproject.toml b/pyproject.toml
index b3daac6fd1b..0206b5537f5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -288,6 +288,8 @@ dev = [
"types-redis",
"types-regex",
"types-requests",
+ "types-requests-oauthlib",
+ "types-uwsgi",
"types-zxcvbn",
# Needed for tools/check-thirdparty
@@ -406,14 +408,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
diff --git a/uv.lock b/uv.lock
index 152ebd0cfaf..ab0dc1e8b43 100644
--- a/uv.lock
+++ b/uv.lock
@@ -4784,6 +4784,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"
@@ -4805,6 +4818,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"
@@ -5327,6 +5349,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" },
@@ -5548,6 +5572,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" },
diff --git a/version.py b/version.py
index ae80c99401c..3cdd72765c7 100644
--- a/version.py
+++ b/version.py
@@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 390
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
-PROVISION_VERSION = (327, 1) # bumped 2025-06-04 to upgrade uv
+PROVISION_VERSION = (328, 0) # bumped 2025-06-05 to add types-requests-oauthlib, types-uwsgi
diff --git a/zerver/actions/video_calls.py b/zerver/actions/video_calls.py
index 23f99c0b256..e4965824ce5 100644
--- a/zerver/actions/video_calls.py
+++ b/zerver/actions/video_calls.py
@@ -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(