timeout: Optional[float] = None,
port: int = 443,
source: Optional[str] = None,
- source_port: int = 0,
+ source_port: int = 0, # pylint: disable=W0613
one_rr_per_rrset: bool = False,
ignore_trailing: bool = False,
client: Optional["httpx.AsyncClient"] = None,
return ""
@classmethod
- def _extra_from_text(cls, text):
+ def _extra_from_text(cls, text): # pylint: disable=W0613
return None
@classmethod
- def _extra_to_text(cls, value, current_text):
+ def _extra_to_text(cls, value, current_text): # pylint: disable=W0613
return current_text
@classmethod
(rdclass, rdtype, deleting, empty) = self.message._parse_rr_header(
section_number, name, rdclass, rdtype
)
+ rdata_start = self.parser.current
try:
- rdata_start = self.parser.current
if empty:
if rdlen > 0:
raise dns.exception.FormError
elif ttl < self.ttl:
self.ttl = ttl
- def add(
+ def add( # pylint: disable=arguments-differ,arguments-renamed
self, rd: dns.rdata.Rdata, ttl: Optional[int] = None
- ) -> None: # pylint: disable=arguments-differ
+ ) -> None:
"""Add the specified rdata to the rdataset.
If the optional *ttl* parameter is supplied, then
_prefer_wmi = True
- import winreg
+ import winreg # pylint: disable=import-error
+
+ # Keep pylint quiet on non-windows.
+ try:
+ WindowsError is None # pylint: disable=used-before-assignment
+ except KeyError:
+ WindowsError = Exception
try:
import threading
- import pythoncom
- import wmi
+ import pythoncom # pylint: disable=import-error
+ import wmi # pylint: disable=import-error
_have_wmi = True
except Exception:
@dns.immutable.immutable
class ImmutableVersionedNode(VersionedNode):
- __slots__ = ["id"]
-
def __init__(self, node):
super().__init__()
self.id = node.id
def _set_origin(self, origin):
pass
+ def _iterate_rdatasets(self):
+ raise NotImplementedError # pragma: no cover
+
class RRSetsReaderManager(dns.transaction.TransactionManager):
def __init__(
self.rdclass = rdclass
self.rrsets = []
+ def reader(self): # pragma: no cover
+ raise NotImplementedError
+
def writer(self, replacement=False):
assert replacement is True
return RRsetsReaderTransaction(self, True, False)