import dns.name
from dns.dnssecalgs.base import GenericPrivateKey
+from dns.dnssectypes import Algorithm
+from dns.exception import UnsupportedAlgorithm
+from dns.rdtypes.ANY.DNSKEY import DNSKEY
if dns._features.have("dnssec"):
from dns.dnssecalgs.dsa import PrivateDSA, PrivateDSANSEC3SHA1
else:
_have_cryptography = False
-from dns.dnssectypes import Algorithm
-from dns.exception import UnsupportedAlgorithm
-from dns.rdtypes.ANY.DNSKEY import DNSKEY
-
AlgorithmPrefix = Optional[Union[bytes, dns.name.Name]]
algorithms: Dict[Tuple[Algorithm, AlgorithmPrefix], Type[GenericPrivateKey]] = {}
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
import dns._features
+import dns.enum
+import dns.exception
+import dns.immutable
+import dns.wire
if dns._features.have("idna"):
import idna # type: ignore
else: # pragma: no cover
have_idna_2008 = False
-import dns.enum
-import dns.exception
-import dns.immutable
-import dns.wire
-
CompressType = Dict["Name", int]
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
import dns._features
+import dns.asyncbackend
if dns._features.have("doq"):
import aioquic.quic.configuration # type: ignore
- import dns.asyncbackend
from dns._asyncbackend import NullContext
from dns.quic._asyncio import (
AsyncioQuicConnection,