From: Zbigniew Jędrzejewski-Szmek Date: Mon, 19 Jun 2023 18:28:30 +0000 (+0200) Subject: Drop unnecessary uses of tuple X-Git-Tag: v15~105^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12e308e65f7afb1604c8be6fd099a55cf3b6713;p=thirdparty%2Fmkosi.git Drop unnecessary uses of tuple --- diff --git a/mkosi/config.py b/mkosi/config.py index 649f259ca..775e3ea9f 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -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 diff --git a/mkosi/distributions/debian.py b/mkosi/distributions/debian.py index 4b294402b..5b606ed1d 100644 --- a/mkosi/distributions/debian.py +++ b/mkosi/distributions/debian.py @@ -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( diff --git a/mkosi/run.py b/mkosi/run.py index fdda1b7f5..c0a2291ee 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -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] = {},