File: __init__.pyi

package info (click to toggle)
python-docx 1.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,240 kB
  • sloc: xml: 25,323; python: 23,414; makefile: 175
file content (17 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from __future__ import annotations

from typing import Callable

from typing_extensions import TypeAlias

from .runner import Context

_ThreeArgStep: TypeAlias = Callable[[Context, str, str, str], None]
_TwoArgStep: TypeAlias = Callable[[Context, str, str], None]
_OneArgStep: TypeAlias = Callable[[Context, str], None]
_NoArgStep: TypeAlias = Callable[[Context], None]
_Step: TypeAlias = _NoArgStep | _OneArgStep | _TwoArgStep | _ThreeArgStep

def given(phrase: str) -> Callable[[_Step], _Step]: ...
def when(phrase: str) -> Callable[[_Step], _Step]: ...
def then(phrase: str) -> Callable[[_Step], _Step]: ...