Merge branch 'mnowak/accommodate-black-24.2.0-9.18' into 'bind-9.18'

[9.18] Accommodate black 24.2.0

See merge request isc-projects/bind9!8734
This commit is contained in:
Michal Nowak 2024-02-14 14:46:22 +00:00
commit 67e322b980
4 changed files with 9 additions and 15 deletions

View file

@ -343,7 +343,7 @@ dswithdrawn_tests = [
zone="resolver-dswithdrawn.checkds",
logs_to_wait_for=("empty DS response from 10.53.0.8",),
expected_parent_state="DSRemoved",
)
),
# TBD: DS withdrawn from all parents, but one has bogus signature.
]

View file

@ -27,7 +27,6 @@ class NamedPorts(NamedTuple):
class NamedInstance:
"""
A class representing a `named` instance used in a system test.

View file

@ -57,7 +57,6 @@ class LogFile:
class WatchLog(abc.ABC):
"""
Wait for a log message to appear in a text file.
@ -294,19 +293,18 @@ class WatchLogFromHere(WatchLog):
# pylint: disable=too-few-public-methods
class RNDCExecutor(abc.ABC):
"""
An interface which RNDC executors have to implement in order for the
`NamedInstance` class to be able to use them.
"""
@overload
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str:
...
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str: ...
@overload
def call(self, ip: str, port: int, command: List[str], timeout: int = 10) -> str:
...
def call(
self, ip: str, port: int, command: List[str], timeout: int = 10
) -> str: ...
@abc.abstractmethod
def call(
@ -326,7 +324,6 @@ class RNDCException(Exception):
class RNDCBinaryExecutor(RNDCExecutor):
"""
An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
binary.
@ -342,12 +339,12 @@ class RNDCBinaryExecutor(RNDCExecutor):
self._base_cmdline = [rndc_path, "-c", rndc_conf]
@overload
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str:
...
def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str: ...
@overload
def call(self, ip: str, port: int, command: List[str], timeout: int = 10) -> str:
...
def call(
self, ip: str, port: int, command: List[str], timeout: int = 10
) -> str: ...
def call(
self, ip: str, port: int, command: Union[str, List[str]], timeout: int = 10

View file

@ -16,7 +16,6 @@ import subprocess
# pylint: disable=too-few-public-methods
class RNDCExecutor(abc.ABC):
"""
An interface which RNDC executors have to implement in order for the
`NamedInstance` class to be able to use them.
@ -38,7 +37,6 @@ class RNDCException(Exception):
class RNDCBinaryExecutor(RNDCExecutor):
"""
An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
binary.