mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
flask.Flask.run: port can be str (#2903)
86bf9dca72/flask/app.py (L933)
This commit is contained in:
committed by
Jelle Zijlstra
parent
d46d36b7d7
commit
cfa65b831b
2
third_party/2and3/flask/app.pyi
vendored
2
third_party/2and3/flask/app.pyi
vendored
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user