encode / uvicorn

An ASGI web server, for Python. 🦄
https://www.uvicorn.org/
BSD 3-Clause "New" or "Revised" License
8.61k stars 748 forks source link

Upgrade websockets to 0.13.1 #2471

Closed Kludex closed 1 month ago

Kludex commented 1 month ago

This pull request includes several changes to the uvicorn project, focusing on handling deprecation warnings and refining the WebSocket protocol implementation. The key changes involve the addition of a new filter warning, adjustments to method signatures, and improvements to exception handling in WebSocket communication.

Handling Deprecation Warnings:

WebSocket Protocol Implementation:

Kludex commented 1 month ago

This copilot summary is not that helpful.

I've bumped the websockets in the test suite. I also made sure uvicorn continues to work on the minimum version set on the pyproject i.e. 10.4.

I've also added more type hints to the test_websockets.py.