Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Mar 24, 2024
2 parents 7c864fc + 1495b64 commit 536fb13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sanic/server/protocols/websocket_protocol.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Optional, Sequence, cast


try: # websockets < 11.0
from websockets.connection import State
from websockets.server import ServerConnection as ServerProtocol
except ImportError: # websockets >= 11.0
try: # websockets >= 11.0
from websockets.protocol import State # type: ignore
from websockets.server import ServerProtocol # type: ignore
except ImportError: # websockets < 11.0
from websockets.connection import State
from websockets.server import ServerConnection as ServerProtocol

from websockets import http11
from websockets.datastructures import Headers as WSHeaders
Expand Down

0 comments on commit 536fb13

Please sign in to comment.