-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Labels
type: maintenanceAn issue or pull request describing a change that isn't a bug, feature or documentation changeAn issue or pull request describing a change that isn't a bug, feature or documentation change
Description
Hi,
Apparently following import doesn't work anymore in fresh version of websockets:
Code:
from gql.transport.websockets import WebsocketsTransport
Error:
ImportError Traceback (most recent call last)
<ipython-input-2-23957554be23> in <module>
----> 1 from gql.transport.websockets import WebsocketsTransport
/usr/lib/python3.9/site-packages/gql/transport/websockets.py in <module>
9 from websockets.client import WebSocketClientProtocol
10 from websockets.exceptions import ConnectionClosed
---> 11 from websockets.http import HeadersLike
12 from websockets.typing import Data, Subprotocol
13
ImportError: cannot import name 'HeadersLike' from 'websockets.http' (/usr/lib/python3.9/site-packages/websockets/http.py)
It looks like HeadersLike
are now in websockets.datastructures
Metadata
Metadata
Assignees
Labels
type: maintenanceAn issue or pull request describing a change that isn't a bug, feature or documentation changeAn issue or pull request describing a change that isn't a bug, feature or documentation change