diff --git a/stubs/Flask-SocketIO/flask_socketio/test_client.pyi b/stubs/Flask-SocketIO/flask_socketio/test_client.pyi index 5eed62099a03..bf9acc371f82 100644 --- a/stubs/Flask-SocketIO/flask_socketio/test_client.pyi +++ b/stubs/Flask-SocketIO/flask_socketio/test_client.pyi @@ -1,5 +1,5 @@ -from collections.abc import Callable from typing import Any, TypedDict +from collections.abc import Callable from flask import Flask from flask.testing import FlaskClient @@ -35,9 +35,5 @@ class SocketIOTestClient: self, data: Any, json: bool = False, - namespace: str | None = None, - include_self: bool = True, - skip_sid: list[str] | str | None = None, - callback: Callable[..., Any] | None = None, - **kwargs, - ): ... + callback: Callable[..., Any] | Any = False, + namespace: str | None = None): ... diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index a7db8a2a877e..6a6572b14d86 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -39,6 +39,7 @@ ctypes.memmove # CFunctionType ctypes.memset # CFunctionType ctypes.string_at # docstring argument name is wrong ctypes.wstring_at # docstring argument name is wrong +flask_socketio.test_client.SocketIOTestClient.clients # private attribute, not present in docs fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154 functools.cached_property.__set__ # Stub is a white lie; see comments in the stub