Skip to content

Commit

Permalink
fixup precommit types
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jan 17, 2025
1 parent 004d870 commit c1eddd8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/workbenches/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import typing

T = typing.TypeVar("T")
StepRType = tuple[str, str]


def Desc(value: str) -> str:
Expand All @@ -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

Expand All @@ -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

0 comments on commit c1eddd8

Please sign in to comment.