From aeb3783117ceeeb0a65b78ed026de3307dae06cd Mon Sep 17 00:00:00 2001 From: Mia McMahill Date: Fri, 26 Jun 2026 20:04:36 -0500 Subject: [PATCH] flatpak-coredumpctl: Explicitly indicate type for DebugDumpArgs.target Fixes a type check error with mypy Other members had their type hints moved to the class body as well for consistency --- scripts/flatpak-coredumpctl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/flatpak-coredumpctl b/scripts/flatpak-coredumpctl index b86f7af34..901965262 100755 --- a/scripts/flatpak-coredumpctl +++ b/scripts/flatpak-coredumpctl @@ -36,6 +36,11 @@ class DebugDumpArgs: class BuildDir: directory: str + target: AppId | BuildDir + coredumpctl_matches: str + extra_flatpak_args: str + gdb_arguments: str + def __init__(self, ns: argparse.Namespace) -> None: if ns.app is None and ns.build_directory is None: raise ValueError("Either `--build-directory` or `APP` must be specified.") @@ -45,9 +50,9 @@ class DebugDumpArgs: self.target = self.AppId(ns.app) else: self.target = self.BuildDir(ns.build_directory) - self.coredumpctl_matches: str = ns.coredumpctl_matches - self.extra_flatpak_args: str = ns.extra_flatpak_args - self.gdb_arguments: str = ns.gdb_arguments + self.coredumpctl_matches= ns.coredumpctl_matches + self.extra_flatpak_args = ns.extra_flatpak_args + self.gdb_arguments = ns.gdb_arguments def debug_dump(args: DebugDumpArgs) -> int: match args.target: