fix(server): typing error
This commit is contained in:
parent
66223d9a64
commit
e7697efd9f
14
poetry.lock
generated
14
poetry.lock
generated
|
@ -161,7 +161,7 @@ gitdb = ">=4.0.1,<5"
|
|||
|
||||
[[package]]
|
||||
name = "identify"
|
||||
version = "2.4.8"
|
||||
version = "2.4.9"
|
||||
description = "File identification library for Python"
|
||||
category = "dev"
|
||||
optional = false
|
||||
|
@ -272,7 +272,7 @@ python-versions = ">=3.6"
|
|||
|
||||
[[package]]
|
||||
name = "platformdirs"
|
||||
version = "2.4.1"
|
||||
version = "2.5.0"
|
||||
description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
|
||||
category = "dev"
|
||||
optional = false
|
||||
|
@ -451,7 +451,7 @@ python-versions = ">=3.7"
|
|||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "778b09be0cc0811e5001267cd6bd33b1b65f689839722477239db531181a41a5"
|
||||
content-hash = "6f9f817034ddae03ae6983e80bc86ed2f53efbc4d7330bcf5e44fe1b35b24364"
|
||||
|
||||
[metadata.files]
|
||||
asyncio = [
|
||||
|
@ -582,8 +582,8 @@ gitpython = [
|
|||
{file = "GitPython-3.1.26.tar.gz", hash = "sha256:fc8868f63a2e6d268fb25f481995ba185a85a66fcad126f039323ff6635669ee"},
|
||||
]
|
||||
identify = [
|
||||
{file = "identify-2.4.8-py2.py3-none-any.whl", hash = "sha256:a55bdd671b6063eb837af938c250ec00bba6e610454265133b0d2db7ae718d0f"},
|
||||
{file = "identify-2.4.8.tar.gz", hash = "sha256:97e839c1779f07011b84c92af183e1883d9745d532d83412cca1ca76d3808c1c"},
|
||||
{file = "identify-2.4.9-py2.py3-none-any.whl", hash = "sha256:bff7c4959d68510bc28b99d664b6a623e36c6eadc933f89a4e0a9ddff9b4fee4"},
|
||||
{file = "identify-2.4.9.tar.gz", hash = "sha256:e926ae3b3dc142b6a7a9c65433eb14ccac751b724ee255f7c2ed3b5970d764fb"},
|
||||
]
|
||||
isort = [
|
||||
{file = "isort-5.10.1-py3-none-any.whl", hash = "sha256:6f62d78e2f89b4500b080fe3a81690850cd254227f27f75c3a0c491a1f351ba7"},
|
||||
|
@ -676,8 +676,8 @@ pillow = [
|
|||
{file = "Pillow-8.4.0.tar.gz", hash = "sha256:b8e2f83c56e141920c39464b852de3719dfbfb6e3c99a2d8da0edf4fb33176ed"},
|
||||
]
|
||||
platformdirs = [
|
||||
{file = "platformdirs-2.4.1-py3-none-any.whl", hash = "sha256:1d7385c7db91728b83efd0ca99a5afb296cab9d0ed8313a45ed8ba17967ecfca"},
|
||||
{file = "platformdirs-2.4.1.tar.gz", hash = "sha256:440633ddfebcc36264232365d7840a970e75e1018d15b4327d11f91909045fda"},
|
||||
{file = "platformdirs-2.5.0-py3-none-any.whl", hash = "sha256:30671902352e97b1eafd74ade8e4a694782bd3471685e78c32d0fdfd3aa7e7bb"},
|
||||
{file = "platformdirs-2.5.0.tar.gz", hash = "sha256:8ec11dfba28ecc0715eb5fb0147a87b1bf325f349f3da9aab2cd6b50b96b692b"},
|
||||
]
|
||||
pre-commit = [
|
||||
{file = "pre_commit-2.17.0-py2.py3-none-any.whl", hash = "sha256:725fa7459782d7bec5ead072810e47351de01709be838c2ce1726b9591dad616"},
|
||||
|
|
|
@ -8,7 +8,7 @@ license = "MIT"
|
|||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
asyncio = "^3.4.3"
|
||||
websockets = "^10.0"
|
||||
websockets = "^10.1"
|
||||
cffi = "^1.15.0"
|
||||
cached-property = "^1.5.2"
|
||||
Pillow = "^8.4.0"
|
||||
|
|
|
@ -78,7 +78,7 @@ async def handler(websocket: websockets.server.WebSocketServerProtocol, path: st
|
|||
async def main() -> None:
|
||||
"""Start the websocket server."""
|
||||
logging.debug("Server started !")
|
||||
async with websockets.serve(handler, WEBSOCKET_SERVE, WEBSOCKET_PORT): # nosec
|
||||
async with websockets.server.serve(handler, WEBSOCKET_SERVE, WEBSOCKET_PORT): # nosec
|
||||
await asyncio.Future() # run forever
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue