# SPDX-License-Identifier: LGPL-2.1+
-from __future__ import annotations
-
import argparse
import ast
import collections
return self.value
@classmethod
- def doc(cls) -> Dict[SourceFileTransfer, str]:
+ def doc(cls) -> Dict["SourceFileTransfer", str]:
return {
cls.copy_all: "normal file copy",
cls.copy_git_cached: "use git ls-files --cached, ignoring any file that git itself ignores",
return path
-def build_auxiliary_output_path(args: Union[argparse.Namespace, MkosiConfig], suffix: str) -> Path:
- output = strip_suffixes(args.output)
- return output.with_name(f"{output.name}{suffix}")
-
-
@dataclasses.dataclass(frozen=True)
class MkosiConfig:
"""Type-hinted storage for command line arguments.
)
+def build_auxiliary_output_path(args: Union[argparse.Namespace, MkosiConfig], suffix: str) -> Path:
+ output = strip_suffixes(args.output)
+ return output.with_name(f"{output.name}{suffix}")
+
+
@dataclasses.dataclass
class MkosiState:
"""State related properties."""