from __future__ import annotations from dataclasses import dataclass @dataclass(frozen=True) class DlpConfig: python_executable: str | None = None startup_timeout: float = 60 def python_command(self) -> list[str] | None: if self.python_executable is None: return None return [self.python_executable]