cmds.secrets.Cmd: Fix type hints

cmds.secrets.Cmd has a CmdDistro-typed parent, should be CmdSecrets, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-24 07:14:00 +02:00
commit 563ec7463a
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
2 changed files with 2 additions and 3 deletions

View file

@ -11,7 +11,7 @@ if TYPE_CHECKING:
from typing import Iterable
from ...lib.Distro import Distro
from ...lib.ExecContext import ExecContext
from ..CmdDistro import CmdDistro
from ..CmdSecrets import CmdSecrets
from .lib.DistroContext import DistroContext
@ -39,7 +39,7 @@ class Cmd(Base): # export
async def _compile_template_files(self, packages: Iterable[str], default_attrs: Attrs) -> list[str]:
return await self.ctx.compile_template_files(packages, default_attrs)
def __init__(self, parent: CmdDistro, name: str, help: str) -> None:
def __init__(self, parent: CmdSecrets, name: str, help: str) -> None:
super().__init__(parent, name, help)
def add_arguments(self, parser: ArgumentParser) -> None:

View file

@ -11,7 +11,6 @@ from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Iterable
from ....lib.FileContext import FileContext
from ...CmdDistro import CmdDistro
from ....lib.log import *
from ....lib.util import run_cmd