From e4ef755b31448869cbe09c56a479c4af996b4354 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 29 Feb 2024 15:27:58 -0800 Subject: [PATCH] Fix some pylint lint for xfr refactor. --- dns/query.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dns/query.py b/dns/query.py index ed92ee3a..39eee0ee 100644 --- a/dns/query.py +++ b/dns/query.py @@ -29,7 +29,7 @@ import socket import struct import time import urllib.parse -from typing import Any, Dict, List, Optional, Tuple, Union, cast +from typing import Any, Dict, Optional, Tuple, Union, cast import dns._features import dns.exception @@ -1572,9 +1572,15 @@ def xfr( def origin_information(self): return self.info + def get_class(self) -> dns.rdataclass.RdataClass: + raise NotImplementedError # pragma: no cover + + def reader(self): + raise NotImplementedError # pragma: no cover + def writer(self, replacement: bool = False) -> dns.transaction.Transaction: class DummyTransaction(object): - def nop(*args, **kw): + def nop(self, *args, **kw): pass def __getattr__(self, _): @@ -1650,7 +1656,7 @@ def inbound_xfr( Raises on errors. """ - for msg in _inbound_xfr( + for _ in _inbound_xfr( where, txn_manager, query, -- 2.47.3