From: Bob Halley Date: Thu, 29 Feb 2024 23:27:58 +0000 (-0800) Subject: Fix some pylint lint for xfr refactor. X-Git-Tag: v2.7.0rc1~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4ef755b31448869cbe09c56a479c4af996b4354;p=thirdparty%2Fdnspython.git Fix some pylint lint for xfr refactor. --- 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,