diff --git a/stubs/pytest-lazy-fixture/METADATA.toml b/stubs/pytest-lazy-fixture/METADATA.toml new file mode 100644 index 000000000000..22cbe4eb9ca3 --- /dev/null +++ b/stubs/pytest-lazy-fixture/METADATA.toml @@ -0,0 +1 @@ +version = "0.6" diff --git a/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi b/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi new file mode 100644 index 000000000000..b5cc42079cb1 --- /dev/null +++ b/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi @@ -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