Start rewrite (yet again)

This will hopefully be the final rewrite.
This commit is contained in:
Joscha 2019-04-06 09:02:09 +00:00
parent 5e108fd31b
commit a5af01f669
19 changed files with 455 additions and 1344 deletions

22
info.txt Normal file
View file

@ -0,0 +1,22 @@
Signature of a normal function:
def a(b: int, c: str) -> bool:
pass
a # type: Callable[[int, str], bool]
Signature of an async function:
async def a(b: int, c: str) -> bool:
pass
a # type: Callable[[int, str], Awaitable[bool]]
Enable logging (from the websockets docs):
import logging
logger = logging.getLogger('websockets')
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())