Skip to content

Commit

Permalink
fix list import from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jun 4, 2021
1 parent bd34f2b commit 3a9bd72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sydent/http/srvresolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from twisted.names import client, dns
from twisted.names.error import DNSNameError, DomainError

from typing import Callable, Dict, Tuple
from typing import Callable, Dict, Tuple, List

logger = logging.getLogger(__name__)

Expand All @@ -54,7 +54,7 @@ class Server(object):
expires = attr.ib(default=0)


def pick_server_from_list(server_list: list[Server]) -> Tuple[bytes, int]:
def pick_server_from_list(server_list: List[Server]) -> Tuple[bytes, int]:
"""Randomly choose a server from the server list.
:param server_list: List of candidate servers.
Expand Down

0 comments on commit 3a9bd72

Please sign in to comment.