mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:15:03 -04:00
Reduce the number of "untyped defs" (#12716)
This commit is contained in:
parent
de1e599b9d
commit
17e1eb7749
16 changed files with 142 additions and 69 deletions
|
@ -16,7 +16,7 @@
|
|||
import logging
|
||||
import random
|
||||
import time
|
||||
from typing import Callable, Dict, List
|
||||
from typing import Any, Callable, Dict, List
|
||||
|
||||
import attr
|
||||
|
||||
|
@ -109,7 +109,7 @@ class SrvResolver:
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
dns_client=client,
|
||||
dns_client: Any = client,
|
||||
cache: Dict[bytes, List[Server]] = SERVER_CACHE,
|
||||
get_time: Callable[[], float] = time.time,
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue