|
| 1 | +from _typeshed import Incomplete |
| 2 | +from collections.abc import Callable |
| 3 | +from contextlib import AbstractContextManager |
| 4 | +from typing import ClassVar, ParamSpec |
| 5 | + |
| 6 | +_P = ParamSpec("_P") |
| 7 | + |
| 8 | +class Context: |
| 9 | + LAYER_NAMES: ClassVar[list[str]] |
| 10 | + FAIL_ON_CLEANUP_ERRORS: ClassVar[bool] |
| 11 | + |
| 12 | + feature: Incomplete | None |
| 13 | + scenario: Incomplete |
| 14 | + tags: set[str] |
| 15 | + aborted: bool |
| 16 | + failed: bool |
| 17 | + table: Incomplete | None |
| 18 | + text: str | None |
| 19 | + config: Incomplete |
| 20 | + active_outline: Incomplete |
| 21 | + fail_on_cleanup_errors: bool |
| 22 | + |
| 23 | + def __init__(self, runner) -> None: ... |
| 24 | + def __getattr__(self, name: str) -> Incomplete: ... |
| 25 | + def __setattr__(self, name: str, value) -> None: ... |
| 26 | + def __delattr__(self, name: str) -> None: ... |
| 27 | + def __contains__(self, name: str) -> bool: ... |
| 28 | + def abort(self, reason: str | None = None) -> None: ... |
| 29 | + def use_or_assign_param(self, name: str, value): ... |
| 30 | + def use_or_create_param(self, name: str, factory_func: Callable[_P, Incomplete], *args: _P.args, **kwargs: _P.kwargs): ... |
| 31 | + def use_with_user_mode(self) -> AbstractContextManager[None]: ... |
| 32 | + def execute_steps(self, steps_text: str) -> bool: ... |
| 33 | + def add_cleanup(self, cleanup_func: Callable[_P, Incomplete], *args: _P.args, **kwargs: _P.kwargs) -> None: ... |
| 34 | + @property |
| 35 | + def captured(self): ... |
| 36 | + def attach(self, mime_type: str, data: bytes) -> None: ... |
| 37 | + |
| 38 | +def __getattr__(name: str) -> Incomplete: ... |
0 commit comments