jw-pkg/src/python/jw/pkg/lib/distros
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann dcbd4b1c84 lib: Change Iterable to Collection for truthy checks
Change parameter types from Iterable[str] to Collection[str] wherever
the parameter is tested for emptiness (if not names). This satisfies
the new truthy-iterable mypy rule, since bare Iterable values are
always truthy even when empty.

Affected files:
- Distro.py: install, delete, select, _select, _select_by_name
- rpm.py: query_packages
- suse/Distro.py: _select_by_name
- Cmd.py (secrets): _match_files, _list_template_files, etc.
- DistroContext.py: list_template_files, list_secret_paths, etc.

Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.dev 0.81.1
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-09 11:31:15 +00:00
..
arch App, lib, cmds: Fix mypy.explicit-override fallout 2026-08-07 18:02:26 +02:00
debian App, lib, cmds: Fix mypy.explicit-override fallout 2026-08-07 18:02:26 +02:00
redhat lib.Distro, ExecContext: Add classes, refactor lib.distro 2026-03-06 14:56:46 +01:00
suse lib: Change Iterable to Collection for truthy checks 2026-08-09 11:31:15 +00:00
Makefile cmds.distro: Move all modules to lib 2026-03-06 12:06:28 +01:00