From c1eddd833fae42f180d9210b9a71cd4d624d3c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Fri, 17 Jan 2025 10:49:29 +0100 Subject: [PATCH] fixup precommit types --- tests/workbenches/docs.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/workbenches/docs.py b/tests/workbenches/docs.py index 8cfbf40..fbb85de 100644 --- a/tests/workbenches/docs.py +++ b/tests/workbenches/docs.py @@ -2,6 +2,7 @@ import typing T = typing.TypeVar("T") +StepRType = tuple[str, str] def Desc(value: str) -> str: @@ -11,14 +12,14 @@ def Desc(value: str) -> str: def Step( value: str, expected: str, -) -> tuple[str, str]: +) -> StepRType: return value, expected def SuiteDoc( description: str, - beforeTestSteps: set[Step], - afterTestSteps: set[Step], + beforeTestSteps: set[StepRType], + afterTestSteps: set[StepRType], ) -> Callable[[T], T]: return lambda x: x @@ -33,6 +34,6 @@ def Contact( def TestDoc( description: str, contact: str, - steps: set[Step], + steps: set[StepRType], ) -> Callable[[T], T]: return lambda x: x