mirror of https://github.com/encode/starlette.git
type of subprotocol is str, not List[str] (#308)
* type of subprotocol is str, not List[str] * Force upgrade cached requirements * Attempt to force clean test re-run * Always force latest requirements
This commit is contained in:
parent
a1e9dedee0
commit
437da1c0f0
|
@ -13,7 +13,7 @@ services:
|
|||
- postgresql
|
||||
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install -U -r requirements.txt
|
||||
|
||||
before_script:
|
||||
- psql -c 'create database starlette;' -U postgres
|
||||
|
|
|
@ -107,7 +107,7 @@ class WebSocket(HTTPConnection):
|
|||
else:
|
||||
raise RuntimeError('Cannot call "send" once a close message has been sent.')
|
||||
|
||||
async def accept(self, subprotocol: typing.List[str] = None) -> None:
|
||||
async def accept(self, subprotocol: str = None) -> None:
|
||||
if self.client_state == WebSocketState.CONNECTING:
|
||||
# If we haven't yet seen the 'connect' message, then wait for it first.
|
||||
await self.receive()
|
||||
|
|
Loading…
Reference in New Issue