Skip to content

Commit

Permalink
test_client: Corrected type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
sohang3112 committed Sep 20, 2023
1 parent bf49298 commit 520ba4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 3 additions & 7 deletions stubs/Flask-SocketIO/flask_socketio/test_client.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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): ...
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 520ba4b

Please sign in to comment.