diff options
Diffstat (limited to 'coverage/debug.py')
-rw-r--r-- | coverage/debug.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/coverage/debug.py b/coverage/debug.py index 12233959..d56a66bb 100644 --- a/coverage/debug.py +++ b/coverage/debug.py @@ -105,9 +105,13 @@ class DebugControlString(DebugControl): return cast(str, self.raw_output.getvalue()) # type: ignore -class NoDebugging: +class NoDebugging(DebugControl): """A replacement for DebugControl that will never try to do anything.""" - def should(self, option: str) -> bool: # pylint: disable=unused-argument + def __init__(self) -> None: + # pylint: disable=super-init-not-called + ... + + def should(self, option: str) -> bool: """Should we write debug messages? Never.""" return False |