flask.Flask.run: port can be str (#2903)

86bf9dca72/flask/app.py (L933)
This commit is contained in:
Anthony Sottile
2019-04-08 11:41:37 -07:00
committed by Jelle Zijlstra
parent d46d36b7d7
commit cfa65b831b

View File

@@ -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): ...