Flask-SocketIO: fix type hints (#12140)

This commit is contained in:
LY(退网/offline)
2024-06-16 17:43:07 +08:00
committed by GitHub
parent 340935b8b8
commit 3a10775d5e
2 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
# private attributes / methods, not present in docs
flask_socketio.SocketIOTestClient.clients
flask_socketio.test_client.SocketIOTestClient.clients
flask_socketio.gevent_socketio_found
flask_socketio.call

View File

@@ -7,8 +7,8 @@ from typing_extensions import ParamSpec, TypeAlias
from flask import Flask
from flask.testing import FlaskClient
from .namespace import Namespace
from .test_client import SocketIOTestClient
from .namespace import Namespace as Namespace
from .test_client import SocketIOTestClient as SocketIOTestClient
_P = ParamSpec("_P")
_R_co = TypeVar("_R_co", covariant=True)
@@ -96,9 +96,9 @@ class SocketIO:
port: int | None = None,
*,
debug: bool = True,
use_reloader: bool,
use_reloader: bool = ...,
reloader_options: dict[str, Incomplete] = {},
log_output: bool,
log_output: bool = ...,
allow_unsafe_werkzeug: bool = False,
**kwargs,
) -> None: ...