jw-pkg/src/python/jw/pkg/lib/ec/ssh
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 1e613a39c6 App, cmds, lib: Fix Any returns from typed functions
Add type annotations and casts to functions that were returning Any
where a specific type was declared, satisfying the new warn_return_any
mypy rule.

Fixes:
- log.py: get_caller_pos return type via cast
- AsyncRunner.py: cast T for fut.result()
- util.py: cast for getattr result, str() for args.username
- FileContext.py: verbose_default bool annotation
- SSHClient.py: cast SSHClient for dynamic import
- lib/App.py: cast ArgumentParser, add return types to inner funcs
- pm/rpm.py, dpkg.py: cast Iterable[Package]
- App.py: cast for self.args.func(), add return types to inner funcs
- BaseCmdPkgRelations.py: cast str for args.delimiter

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 12:07:37 +00:00
..
AsyncSSH.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
Exec.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
Makefile lib.ec.SSHClientInternal|SSHClientCmd: Own .py 2026-03-20 13:35:50 +01:00
Paramiko.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
util.py App, lib, cmds: Remove unreachable code 2026-08-09 11:34:27 +00:00