zulip/tools/setup
Anders Kaseorg 5901e7ba7e python: Convert function type annotations to Python 3 style.
Generated by com2ann (slightly patched to avoid also converting
assignment type annotations, which require Python 3.6), followed by
some manual whitespace adjustment, and six fixes for runtime issues:

-    def __init__(self, token: Token, parent: Optional[Node]) -> None:
+    def __init__(self, token: Token, parent: "Optional[Node]") -> None:

-def main(options: argparse.Namespace) -> NoReturn:
+def main(options: argparse.Namespace) -> "NoReturn":

-def fetch_request(url: str, callback: Any, **kwargs: Any) -> Generator[Callable[..., Any], Any, None]:
+def fetch_request(url: str, callback: Any, **kwargs: Any) -> "Generator[Callable[..., Any], Any, None]":

-def assert_server_running(server: subprocess.Popen[bytes], log_file: Optional[str]) -> None:
+def assert_server_running(server: "subprocess.Popen[bytes]", log_file: Optional[str]) -> None:

-def server_is_up(server: subprocess.Popen[bytes], log_file: Optional[str]) -> bool:
+def server_is_up(server: "subprocess.Popen[bytes]", log_file: Optional[str]) -> bool:

-    method_kwarg_pairs: List[FuncKwargPair],
+    method_kwarg_pairs: "List[FuncKwargPair]",

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:42:48 -07:00
..
dev-vagrant-docker dev-vagrant-docker: Upgrade docker-systemctl-replacement. 2019-06-24 22:06:32 -07:00
emoji provision: Let build_emoji build its own cache. 2020-04-17 09:53:26 -07:00
__init__.py Add __init__.py to tools/ and tools/setup/. 2016-07-20 18:20:37 -07:00
build_pygments_data pygments_data: Replace JS module with JSON module. 2020-02-12 10:09:12 -08:00
dev-motd Vagrantfile: Be nicer to /etc/update-motd.d. 2019-05-24 17:33:06 -07:00
generate_zulip_bots_static_files.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
generate-fixtures flush-memcached: Respect MEMCACHED_LOCATION; handle errors. 2019-10-01 16:05:55 -07:00
generate-test-credentials generate-test-credentials: Fix shellcheck warnings. 2018-08-03 09:15:27 -07:00
install-aws-server install-aws-server: Use our settings.py if available. 2019-06-13 14:39:25 -07:00
install-sgrep sgrep: Install syntactic code search tool as an external linter. 2020-04-01 15:08:34 -07:00
install-shellcheck install-shellcheck: Check the tarball’s SHA-256 hash. 2020-03-31 15:01:54 -07:00
lang.json bugdown: Add 'none' as alias for no syntax highlighting in codeblocks. 2020-04-09 16:02:02 -07:00
optimize-svg Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
postgres-init-dev-db flush-memcached: Respect MEMCACHED_LOCATION; handle errors. 2019-10-01 16:05:55 -07:00
postgres-init-test-db tools: Fix postgres-init-*-db cache handling. 2019-06-17 16:24:13 -07:00
setup_venvs.py setup_venv: Replace virtualenv_args list with python2 bool. 2020-02-05 12:38:10 -08:00