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: Enable local_partial_types.

Zixuan James Lib3f27b184336
diff --git a/pyproject.toml b/pyproject.toml
index f854d47bc64..b6c4891bc9b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -38,6 +38,10 @@ show_error_codes = true
# Warn of unreachable or redundant code.
warn_unreachable = true
+# dmypy enables local_partial_types implicitly. We need mypy to align
+# with this behavior.
+local_partial_types = true
+
[[tool.mypy.overrides]]
module = ["zproject.configured_settings", "zproject.settings"]
no_implicit_reexport = false
diff --git a/tools/run-dev.py b/tools/run-dev.py
index 045b94b124f..aac1f4a3929 100755
--- a/tools/run-dev.py
+++ b/tools/run-dev.py
@@ -338,7 +338,7 @@ def print_listeners() -> None:
print()
-children = []
+children: List["subprocess.Popen[bytes]"] = []
async def serve() -> None: