yaboli/info.txt
Joscha a5af01f669 Start rewrite (yet again)
This will hopefully be the final rewrite.
2019-04-06 09:02:09 +00:00

22 lines
410 B
Text

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())