Open
Description
Describe the bug
The package gives deprecation warnings on import.
DeprecationWarning: websockets.client.connect is deprecated
DeprecationWarning: websockets.client.WebSocketClientProtocol is deprecated
To Reproduce
from polygon import RESTClient
Additional context
All packages installed with uv
including websockets
version 14.1
The warning comes from the following line in polygon/websocket/__init__.py
:
from websockets.client import connect, WebSocketClientProtocol
websockets.client.connect
has been deprecated. To be replaced I believe with websockets.connect
. WebSocketClientProtocol
has also been deprecated.