Bump websockets from 13.1 to 14.1 (#319)

* Bump websockets from 13.1 to 14.1

Bumps [websockets](https://github.com/python-websockets/websockets) from 13.1 to 14.1.
- [Release notes](https://github.com/python-websockets/websockets/releases)
- [Commits](https://github.com/python-websockets/websockets/compare/13.1...14.1)

---
updated-dependencies:
- dependency-name: websockets
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* use Python 3.9 only

* update deprecated websocket connection

* generate client

* ignore .vscode/

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Greg Sweeney <greg@kittycad.io>
This commit is contained in:
dependabot[bot]
2024-11-26 13:36:23 -05:00
committed by GitHub
parent 717c842932
commit 779a1c3458
8 changed files with 855 additions and 859 deletions

View File

@ -2,8 +2,14 @@ import json
from typing import Any, Dict, Iterator, Optional
import bson
from websockets.client import WebSocketClientProtocol, connect as ws_connect_async
from websockets.sync.client import ClientConnection, connect as ws_connect
from websockets.asyncio.client import (
ClientConnection as ClientConnectionAsync,
connect as ws_connect_async,
)
from websockets.sync.client import (
ClientConnection as ClientConnectionSync,
connect as ws_connect,
)
from ...client import Client
from ...models.post_effect_type import PostEffectType
@ -103,7 +109,7 @@ def sync(
client: Client,
pool: Optional[str] = None,
replay: Optional[str] = None,
) -> ClientConnection:
) -> ClientConnectionSync:
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
kwargs = _get_kwargs(
@ -139,7 +145,7 @@ async def asyncio(
client: Client,
pool: Optional[str] = None,
replay: Optional[str] = None,
) -> WebSocketClientProtocol:
) -> ClientConnectionAsync:
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
kwargs = _get_kwargs(
@ -166,7 +172,7 @@ async def asyncio(
class WebSocket:
"""A websocket connection to the API endpoint."""
ws: ClientConnection
ws: ClientConnectionSync
def __init__(
self,