Skip to content

Commit

Permalink
fixup precommit add types
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jan 17, 2025
1 parent 5a79b41 commit 67271a2
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions tests/workbenches/docs.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
def Desc(value: str):
from typing import Callable
import typing

T = typing.TypeVar("T")


def Desc(value: str) -> str:
return value


def Step(
value: str,
expected: str,
):
value: str,
expected: str,
) -> tuple[str, str]:
return value, expected


def SuiteDoc(
description: str,
beforeTestSteps: set[Step],
afterTestSteps: set[Step],
):
description: str,
beforeTestSteps: set[Step],
afterTestSteps: set[Step],
) -> Callable[[T], T]:
return lambda x: x


def Contact(
name: str,
email: str,
):
name: str,
email: str,
) -> tuple[str, str]:
return name, email


def TestDoc(
description: str,
contact: str,
steps: set[Step],
):
description: str,
contact: str,
steps: set[Step],
) -> Callable[[T], T]:
return lambda x: x

0 comments on commit 67271a2

Please sign in to comment.