mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Flask-SocketIO: fix type hints (#12140)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user