jw-pkg/src/python/jw
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 3602e3ce0d
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m40s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m45s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m12s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m37s
CI / Packaging test (push) Successful in 0s
lib.{App,Cmd}: Pass parent= by name to Cmd* constructors
The framework instantiates command classes in two places: the top-level
commands in App and the lazily materialized subcommands in
Cmd.add_subcommands(). Both pass the parent parameter positionally.

Change that to passing parent by keyword at both call sites. Every command
class names its first __init__() parameter parent, so the keyword form
binds the same slot for all of them regardless of parameter order, and it
allows a command class to declare parent as keyword-only.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-09-20 11:51:25 +02:00
..
pkg lib.{App,Cmd}: Pass parent= by name to Cmd* constructors 2026-09-20 11:51:25 +02:00
__init__.py jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
Makefile py-ns-dir.mk: Support __init__.py generation 2026-09-05 13:39:51 +02:00