Skip to content

Commit c4a60ce

Browse files
kasiumAkuli
andauthored
Add pytest-lazyfixture stubs (#5745)
This change will add stubs for pytest-lazyfixture. It is particual useful for projects which type their tests and use pytest-lazyfixture. The included functions and classes are the scope which can be considered documented by the module. Any other function is related to pytest hook implementations and are normally not called by an user. Please note, that if a user uses 'pytest.lazy_fixture' these stubs will not work. As recommneded in TvoroG/pytest-lazy-fixture#51 the package needs to imported directly. Co-authored-by: Akuli <[email protected]>
1 parent aca5952 commit c4a60ce

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.6"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from typing import Any, Iterable, overload
2+
3+
class LazyFixture:
4+
name: str
5+
def __init__(self, name: str) -> None: ...
6+
def __eq__(self, other: object) -> bool: ...
7+
8+
@overload
9+
def lazy_fixture(names: str) -> LazyFixture: ...
10+
@overload
11+
def lazy_fixture(names: Iterable[str]) -> list[LazyFixture] | Any: ...
12+
def is_lazy_fixture(val: Any) -> bool: ...
13+
def pytest_configure() -> None: ...
14+
def __getattr__(name: str) -> Any: ... # incomplete

0 commit comments

Comments
 (0)