Skip to content

Commit 40f8433

Browse files
committed
nixos-rebuild-ng: improve types in nix.switch_to_configuration
1 parent 82dc1d7 commit 40f8433

File tree

1 file changed

+2
-2
lines changed
  • pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild

1 file changed

+2
-2
lines changed

pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/nix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pathlib import Path
99
from string import Template
1010
from subprocess import PIPE, CalledProcessError
11-
from typing import Final
11+
from typing import Final, Literal
1212
from uuid import uuid4
1313

1414
from . import tmpdir
@@ -554,7 +554,7 @@ def set_profile(
554554

555555
def switch_to_configuration(
556556
path_to_config: Path,
557-
action: Action,
557+
action: Literal[Action.SWITCH, Action.BOOT, Action.TEST, Action.DRY_ACTIVATE],
558558
target_host: Remote | None,
559559
sudo: bool,
560560
install_bootloader: bool = False,

0 commit comments

Comments
 (0)