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: Disallow untyped decorators.

Anders Kaseorg721b1a2af008
diff --git a/pyproject.toml b/pyproject.toml
index 7b70d8b127a..5580ba88bb4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -383,7 +383,6 @@ cache_dir = "$MYPY_CONFIG_FILE_DIR/var/mypy-cache"
strict = true
disallow_subclassing_any = false
disallow_untyped_calls = false
-disallow_untyped_decorators = false
warn_return_any = false
# Enable optional errors.
diff --git a/zproject/backends.py b/zproject/backends.py
index 9dd0c6cdeca..ec5e3c3f358 100644
--- a/zproject/backends.py
+++ b/zproject/backends.py
@@ -2395,7 +2395,7 @@ def social_associate_user_helper(
return user_profile
-@partial
+@partial # type: ignore[untyped-decorator] # upstream annotation missing
def social_auth_associate_user(
backend: BaseAuth, *args: Any, **kwargs: Any
) -> HttpResponse | dict[str, Any]: