diff --git a/.travis.yml b/.travis.yml index 37e4b708..060b3eea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/starlette/websockets.py b/starlette/websockets.py index 9b9d9766..c494bc38 100644 --- a/starlette/websockets.py +++ b/starlette/websockets.py @@ -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()