From cfa65b831b327c595129fcc11c855ac504920d98 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 8 Apr 2019 11:41:37 -0700 Subject: [PATCH] flask.Flask.run: port can be str (#2903) https://github.com/pallets/flask/blob/86bf9dca72cd188813e26ef5dd972101ef8983cf/flask/app.py#L933 --- third_party/2and3/flask/app.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2and3/flask/app.pyi b/third_party/2and3/flask/app.pyi index e4fb038a8..5be3d6d59 100644 --- a/third_party/2and3/flask/app.pyi +++ b/third_party/2and3/flask/app.pyi @@ -88,7 +88,7 @@ class Flask(_PackageBoundObject): def make_shell_context(self): ... env: Optional[str] = ... debug: bool = ... - def run(self, host: Optional[str] = ..., port: Optional[int] = ..., debug: Optional[bool] = ..., load_dotenv: bool = ..., **options: Any) -> None: ... + def run(self, host: Optional[str] = ..., port: Optional[Union[int, str]] = ..., debug: Optional[bool] = ..., load_dotenv: bool = ..., **options: Any) -> None: ... def test_client(self, use_cookies: bool = ..., **kwargs: Any) -> FlaskClient: ... def test_cli_runner(self, **kwargs: Any): ... def open_session(self, request: Any): ...