Skip to content

Commit 442d779

Browse files
committed
Add @override
1 parent d02bf15 commit 442d779

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/regr_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from functools import partial
2222
from pathlib import Path
2323
from typing import TypeAlias
24+
from typing_extensions import override
2425

2526
from ts_utils.metadata import get_recursive_requirements, read_metadata
2627
from ts_utils.mypy import mypy_configuration_from_distribution, temporary_mypy_config_file
@@ -262,7 +263,8 @@ class RunResult(Result):
262263
test_case_dir: Path
263264
tempdir: Path
264265

265-
def print_description(self, verbosity: Verbosity) -> None: # noqa: ARG002
266+
@override
267+
def print_description(self, verbosity: Verbosity) -> None:
266268
if self.code:
267269
print(f"{self.command_run}:", end=" ")
268270
print_error("FAILURE\n")
@@ -279,6 +281,7 @@ class NoTestsResult(Result):
279281
version: str
280282
platform: str
281283

284+
@override
282285
def print_description(self, verbosity: Verbosity) -> None:
283286
if verbosity != Verbosity.QUIET:
284287
print_skipped(f"No test cases found for {self.package!r} on Python {self.version} for platform {self.platform!r}.")

0 commit comments

Comments
 (0)