Registry / type-stubs / types-pytest-lazy-fixture

types-pytest-lazy-fixture

JSON →
library0.6.3.20260518pypypiunverified

Typing stubs for pytest-lazy-fixture, providing type hints for LazyFixture and lazy_fixture. Current version 0.6.3.20260408, updated via typeshed. Low release cadence; updated with typeshed releases.

pip install types-pytest-lazy-fixture
INSTALL
IMPORT
SIG · TYPES-PYTEST-LAZY-
T
types-pytest-lazy-fixture
type-stubspythonv0.6.3.20260518
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.6.3.20260518 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LazyFixture
from pytest_lazyfixture_stubs import LazyFixture
from pytest_lazyfixture_stubs import LazyFixture
lazy_fixture
from pytest_lazyfixture_stubs import lazy_fixture
from pytest_lazyfixture_stubs import lazy_fixture

Basic usage of lazy_fixture with parametrize. Note: types-pytest-lazy-fixture provides stubs for this pattern.

from typing import Generator import pytest from pytest_lazyfixture import lazy_fixture def fixture_one() -> int: return 1 def fixture_two(request) -> int: return 2 @pytest.mark.parametrize( 'arg', [ lazy_fixture('fixture_one'), lazy_fixture('fixture_two'), ] ) def test_lazy(arg: int) -> None: assert arg in (1, 2)
Debug
Known issues
gotchaDo not import LazyFixture from pytest; it is not part of the public API. It lives in _pytest.compat. The stubs in types-pytest-lazy-fixture rely on that internal path.
fix
Use from _pytest.compat import LazyFixture if you need the type, but prefer using lazy_fixture from pytest_lazyfixture.
affects: all
gotchaThe package name is 'pytest-lazy-fixture' (with hyphens), but the Python import uses underscores: pytest_lazyfixture. Using the wrong import leads to ModuleNotFoundError.
fix
Install via 'pip install pytest-lazy-fixture' (hyphens), then import as 'from pytest_lazyfixture import lazy_fixture' (underscores).
affects: all
deprecatedThe original pytest-lazy-fixture project is unmaintained (last release 2020). types-pytest-lazy-fixture only provides type stubs, not the runtime package. Ensure you also install the runtime package.
fix
Install both: pip install pytest-lazy-fixture types-pytest-lazy-fixture
affects: >=0.6.3
Upgrade
Version history
0.6.3.20260518latest on PyPI · released May 18, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
OpenAI (training)
1
Resources
types-pytest-lazy-fixture — pip install types-pytest-lazy-fixture · libregistry