]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop unnecessary uses of tuple
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Jun 2023 18:28:30 +0000 (20:28 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Jun 2023 20:49:21 +0000 (14:49 -0600)
mkosi/config.py
mkosi/distributions/debian.py
mkosi/run.py

index 649f259ca2550cc61d85381df84a9d214457d880..775e3ea9fa949aca88b8caf3e12a840c22fdf4d3 100644 (file)
@@ -461,7 +461,7 @@ class MkosiConfigSetting:
     name: str = ""
     default: Any = None
     default_factory: Optional[ConfigDefaultCallback] = None
-    paths: tuple[str, ...] = tuple()
+    paths: tuple[str, ...] = ()
     path_read_text: bool = False
     path_secret: bool = False
 
index 4b294402b2542da21b3d3fb8fe609bb29fbccd2c..5b606ed1d2d0dd458eefa58bc423e648c03d5a97 100644 (file)
@@ -207,7 +207,7 @@ def setup_apt(state: MkosiState, repos: Sequence[str]) -> None:
 def invoke_apt(
     state: MkosiState,
     operation: str,
-    extra: Sequence[str] = tuple(),
+    extra: Sequence[str] = (),
     apivfs: bool = True,
 ) -> CompletedProcess:
     env: dict[str, PathString] = dict(
index fdda1b7f5854e048fd949f4fd10e52ee55c94e9f..c0a2291ee041ac55a01f61103a9da12e4ba27d48 100644 (file)
@@ -372,7 +372,7 @@ def bwrap(
 def run_workspace_command(
     root: Path,
     cmd: Sequence[PathString],
-    bwrap_params: Sequence[PathString] = tuple(),
+    bwrap_params: Sequence[PathString] = (),
     network: bool = False,
     stdout: _FILE = None,
     env: Mapping[str, PathString] = {},