(self, config: Config)
| 427 | """Plugin which implements the --nf (run new-first) option.""" |
| 428 | |
| 429 | def __init__(self, config: Config) -> None: |
| 430 | self.config = config |
| 431 | self.active = config.option.newfirst |
| 432 | assert config.cache is not None |
| 433 | self.cached_nodeids = set(config.cache.get("cache/nodeids", [])) |
| 434 | |
| 435 | @hookimpl(wrapper=True, tryfirst=True) |
| 436 | def pytest_collection_modifyitems(self, items: list[nodes.Item]) -> Generator[None]: |