diff --git a/rwx/ps/__init__.py b/rwx/ps/__init__.py index e18e250..0bbab9c 100644 --- a/rwx/ps/__init__.py +++ b/rwx/ps/__init__.py @@ -9,10 +9,11 @@ def get_tuples_args(*items: str | tuple[str, ...]) -> list[str]: """Turn arguments tuples into an arguments list.""" args: list[str] = [] for item in items: - if type(item) is tuple: - args.extend(item) - else: - args.append(item) + match item: + case str(): + args.append(item) + case tuple(): + args.extend(item) return args