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