Browse Source

fix: lint error

pull/1521/head
phi 7 months ago
parent
commit
5bb11b6964
  1. 2
      src/socketio/async_client.py
  2. 2
      src/socketio/async_server.py
  3. 2
      src/socketio/base_server.py
  4. 7
      src/socketio/client.py
  5. 2
      src/socketio/server.py

2
src/socketio/async_client.py

@ -45,7 +45,7 @@ class AsyncClient(base_client.BaseClient):
leave interrupt handling to the calling application.
Interrupt handling can only be enabled when the
client instance is created in the main thread.
:param serializer_args: A mapping of additional parameters to pass to
:param serializer_args: A mapping of additional parameters to pass to
the serializer. The content of this dictionary
depends on the selected serialization method.

2
src/socketio/async_server.py

@ -50,7 +50,7 @@ class AsyncServer(base_server.BaseServer):
default is `['/']`, which always accepts connections to
the default namespace. Set to `'*'` to accept all
namespaces.
:param serializer_args: A mapping of additional parameters to pass to
:param serializer_args: A mapping of additional parameters to pass to
the serializer. The content of this dictionary
depends on the selected serialization method.
:param kwargs: Connection parameters for the underlying Engine.IO server.

2
src/socketio/base_server.py

@ -253,7 +253,7 @@ class BaseServer:
handler = self.namespace_handlers['*']
args = (namespace, *args)
return handler, args
def _create_packet(self, *args, **kwargs):
return self.packet_class(*args, **kwargs,
**self.packet_class_args)

7
src/socketio/client.py

@ -48,7 +48,7 @@ class Client(base_client.BaseClient):
leave interrupt handling to the calling application.
Interrupt handling can only be enabled when the
client instance is created in the main thread.
:param serializer_args: A mapping of additional parameters to pass to
:param serializer_args: A mapping of additional parameters to pass to
the serializer. The content of this dictionary
depends on the selected serialization method.
@ -237,8 +237,9 @@ class Client(base_client.BaseClient):
data = [data]
else:
data = []
self._send_packet(self._create_packet(packet.EVENT, namespace=namespace,
data=[event] + data, id=id))
self._send_packet(
self._create_packet(packet.EVENT, namespace=namespace,
data=[event] + data, id=id))
def send(self, data, namespace=None, callback=None):
"""Send a message to the server.

2
src/socketio/server.py

@ -53,7 +53,7 @@ class Server(base_server.BaseServer):
default is `['/']`, which always accepts connections to
the default namespace. Set to `'*'` to accept all
namespaces.
:param serializer_args: A mapping of additional parameters to pass to
:param serializer_args: A mapping of additional parameters to pass to
the serializer. The content of this dictionary
depends on the selected serialization method.
:param kwargs: Connection parameters for the underlying Engine.IO server.

Loading…
Cancel
Save