Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Tuple type hint
The type hint for the probe async coroutine definition was 'tuple' instead of 'Tuple'. This caused python 3.8.10 to fail to compile the code.
  • Loading branch information
PhillSimonds authored Oct 15, 2021
commit ac2e80cf0e35afa5eafbd08969d76e5786fcc513
3 changes: 2 additions & 1 deletion 21-async/domains/asyncio/blogdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import asyncio
import socket
from keyword import kwlist
from typing import Tuple

MAX_KEYWORD_LEN = 4 # <1>


async def probe(domain: str) -> tuple[str, bool]: # <2>
async def probe(domain: str) -> Tuple[str, bool]: # <2>
loop = asyncio.get_running_loop() # <3>
try:
await loop.getaddrinfo(domain, None) # <4>
Expand Down