Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pytest-lazyfixture stubs #5745

Merged
merged 15 commits into from
Jul 9, 2021
1 change: 1 addition & 0 deletions stubs/pytest-lazy-fixture/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "0.6"
14 changes: 14 additions & 0 deletions stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from typing import Any, Iterable, overload

class LazyFixture:
name: str
def __init__(self, name: str) -> None: ...
def __eq__(self, other: object) -> bool: ...

@overload
def lazy_fixture(names: str) -> LazyFixture: ...
@overload
def lazy_fixture(names: Iterable[str]) -> list[LazyFixture] | Any: ...
def is_lazy_fixture(val: Any) -> bool: ...
def pytest_configure() -> None: ...
def __getattr__(name: str) -> Any: ... # incomplete