Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Python
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758# This file contains type hints that can be prepended to Nix test scripts so they can be type# checked.
from test_driver.debug import DebugAbstractfrom test_driver.driver import Driverfrom test_driver.vlan import VLanfrom test_driver.machine import Machinefrom test_driver.logger import AbstractLoggerfrom typing import Callable, Iterator, ContextManager, Optional, List, Dict, Any, Unionfrom typing_extensions import Protocolfrom pathlib import Pathfrom unittest import TestCase
class RetryProtocol(Protocol): def __call__(self, fn: Callable, timeout: int = 900) -> None: raise Exception("This is just type information for the Nix test driver")
class PollingConditionProtocol(Protocol): def __call__( self, fun_: Optional[Callable] = None, *, seconds_interval: float = 2.0, description: Optional[str] = None, ) -> Union[Callable[[Callable], ContextManager], ContextManager]: raise Exception("This is just type information for the Nix test driver")
class CreateMachineProtocol(Protocol): def __call__( self, start_command: str | dict, *, name: Optional[str] = None, keep_vm_state: bool = False, ) -> Machine: raise Exception("This is just type information for the Nix test driver")
start_all: Callable[[], None]subtest: Callable[[str], ContextManager[None]]retry: RetryProtocoltest_script: Callable[[], None]machines: List[Machine]vlans: List[VLan]driver: Driverlog: AbstractLoggercreate_machine: CreateMachineProtocolrun_tests: Callable[[], None]join_all: Callable[[], None]serial_stdout_off: Callable[[], None]serial_stdout_on: Callable[[], None]polling_condition: PollingConditionProtocoldebug: DebugAbstractt: TestCase