clan-cli: Add ruff to devShell again. Add missing type annotations

This commit is contained in:
Qubasa
2025-01-29 19:16:34 +07:00
parent e7e96f3f95
commit 84b8838084
4 changed files with 7 additions and 5 deletions

View File

@@ -113,8 +113,8 @@ def nix_shell(packages: list[str], cmd: list[str]) -> list[str]:
# lazy loads list of allowed and static programs
class Programs:
allowed_programs = None
static_programs = None
allowed_programs: list[str] | None = None
static_programs: list[str] | None = None
@classmethod
def is_allowed(cls: type["Programs"], program: str) -> bool: