Start rewrite (yet again)
This will hopefully be the final rewrite.
This commit is contained in:
parent
5e108fd31b
commit
a5af01f669
19 changed files with 455 additions and 1344 deletions
22
info.txt
Normal file
22
info.txt
Normal 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())
|
||||
Loading…
Add table
Add a link
Reference in a new issue