zulip/scripts/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
..
configure-rabbitmq configure-rabbitmq: Allow running as root. 2019-04-04 16:52:20 -07:00
create-db.sql create-db.sql: Start by dropping the zulip database if needed. 2020-01-15 18:04:34 -08:00
create-pgroonga.sql postgres-create-db: Split into non-pgroonga and pgroonga scripts. 2019-07-17 16:18:22 -07:00
debathena-archive.asc scripts: Initialize setup-apt-repo-debathena. 2018-12-11 13:01:26 -08:00
flush-memcached setup_path_on_import: Replace with setup_path function. 2020-02-25 15:40:21 -08:00
generate-self-signed-cert generate-self-signed-cert: Generalize to CentOS, Fedora, RHEL. 2019-01-05 15:49:02 -08:00
generate_secrets.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
initialize-database install: Don't create internal realm in the installation process. 2020-02-12 12:00:10 -08:00
inline_email_css.py inline_email_css: Simplify parsing of template names. 2020-04-10 15:52:52 -07:00
install install, provision: Treat all nonzero exit codes as failure, not just 1. 2019-07-19 11:22:11 -07:00
pgroonga-debian.asc setup: Update groonga APT repository signing key. 2019-09-23 16:01:39 -07:00
pgroonga-ppa.asc
postgres-init-db postgres-init-db: Fix invocation from a relative path. 2020-02-19 14:40:37 -08:00
restore-backup python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
setup-certbot setup-certbot: Remove --force-renewal. (#11652) 2019-02-22 15:50:38 -08:00
terminate-psql-sessions terminate-psql-sessions: Only terminate if we have permissions. 2019-04-23 14:41:42 -07:00