PR feedback

- Use f-string
- Fix wrongly indented comments
- Add dep `trio-typing`
This commit is contained in:
mhchia
2020-01-28 15:48:41 +08:00
parent 095a848f30
commit e57d01f360
3 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ async def run(port: int, destination: str) -> None:
nursery.start_soon(read_data, stream)
nursery.start_soon(write_data, stream)
print("Connected to peer %s" % info.addrs[0])
print(f"Connected to peer {info.addrs[0]}")
await trio.sleep_forever()