Deven Navani

Results 3 issues of Deven Navani

Fix return type annotation of _Function.from_args, from `-> None` to `-> "_Function"`

`websockets` v14.0 was released yesterday which deprecates use of `websockets.legacy`: https://github.com/python-websockets/websockets/blob/f0d20aafab027e9b99460b193dcb709872b219a5/src/websockets/legacy/__init__.py#L7 This breaks `sanic-testing` as it relies on `websockets.legacy` via `from websockets.legacy.client import connect` in `websocket.py` The `websockets` [upgrade guide](https://websockets.readthedocs.io/en/stable/howto/upgrade.html)...

## Describe your changes The existing `queue_batch_iterator` has a couple of issues that are causing suboptimal batching: * Race condition with empty() check: The function was checking q.empty() and then...