We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e4796e commit b569dc1Copy full SHA for b569dc1
ucapi/api.py
@@ -19,8 +19,8 @@
19
# workaround for pylint error: E0611: No name 'ConnectionClosedOK' in module 'websockets' (no-name-in-module) # noqa
20
from websockets.exceptions import ConnectionClosedOK
21
22
-# workaround for pylint error: E1101: Module 'websockets' has no 'serve' member (no-member) # noqa
23
-from websockets.server import serve
+# Note: websockets ~v15 doesn't have websockets.server anymore
+from websockets import serve
24
from zeroconf import IPVersion
25
from zeroconf.asyncio import AsyncServiceInfo, AsyncZeroconf
26
0 commit comments