Skip to content

Deprecation warnings with websockets imports #829

Open
@furechan

Description

@furechan

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.

See websockets upgrade

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions