From b58d0df34959f7448224a39d107d27c13e0b84d9 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 20 Nov 2022 17:37:55 +0300 Subject: [PATCH] Mark `pytest-lazy-fixture` as completed (#9229) --- .../@tests/stubtest_allowlist.txt | 12 ++++++++++++ stubs/pytest-lazy-fixture/METADATA.toml | 3 +++ stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi | 6 ++---- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 stubs/pytest-lazy-fixture/@tests/stubtest_allowlist.txt diff --git a/stubs/pytest-lazy-fixture/@tests/stubtest_allowlist.txt b/stubs/pytest-lazy-fixture/@tests/stubtest_allowlist.txt new file mode 100644 index 000000000..24eb54e76 --- /dev/null +++ b/stubs/pytest-lazy-fixture/@tests/stubtest_allowlist.txt @@ -0,0 +1,12 @@ +# Part of the pytest API, which is internal: +pytest_lazyfixture.pytest_.* + +# Internal undocumented API: +pytest_lazyfixture.fillfixtures +pytest_lazyfixture.normalize_call +pytest_lazyfixture.normalize_metafunc_calls +pytest_lazyfixture.sorted_by_dependency +pytest_lazyfixture.copy_metafunc + +# Compat: +pytest_lazyfixture.PY3 diff --git a/stubs/pytest-lazy-fixture/METADATA.toml b/stubs/pytest-lazy-fixture/METADATA.toml index 03031f1e9..a95bee1ff 100644 --- a/stubs/pytest-lazy-fixture/METADATA.toml +++ b/stubs/pytest-lazy-fixture/METADATA.toml @@ -1 +1,4 @@ version = "0.6.*" + +[tool.stubtest] +ignore_missing_stub = false diff --git a/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi b/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi index 2cc83b5b3..85a357e8a 100644 --- a/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi +++ b/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi @@ -1,6 +1,6 @@ -from _typeshed import Incomplete from collections.abc import Iterable from typing import Any, overload +from typing_extensions import TypeGuard class LazyFixture: name: str @@ -11,6 +11,4 @@ class LazyFixture: 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) -> Incomplete: ... +def is_lazy_fixture(val: object) -> TypeGuard[LazyFixture]: ...