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:
parent
cc6febcda3
commit
563ec7463a
2 changed files with 2 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue