From c6795050534cdd47f2e4fda618bce270ffd5bc8d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 13 Nov 2026 14:40:14 +0100 Subject: [PATCH 1/2] Options.__init__(): Annotate __allowed_keys as Any mypy 2.4.0 infers the attribute from the None assignment in __init__() and then flags the right operand of the and check in __parse__() as unreachable code, failing make check. The attribute is only ever assigned None, so annotate it as Any and keep the runtime behaviour unchanged. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.2 Signed-off-by: Jan Lindemann --- src/python/jw/util/Options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jw/util/Options.py b/src/python/jw/util/Options.py index 2bc75d7..402ca05 100644 --- a/src/python/jw/util/Options.py +++ b/src/python/jw/util/Options.py @@ -126,7 +126,7 @@ class Options: # export true_val: Any = True ) -> None: self.__true_val = true_val - self.__allowed_keys = None + self.__allowed_keys: Any = None self.__delimiter = delimiter self.__data = ( self.__class__.OrderedData() -- 2.56.1 From 71037e631a3b35321f019284f61a087f53e99399 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 13 Nov 2026 14:41:05 +0100 Subject: [PATCH 2/2] style: Sync import formatting with current isort The current isort formats parenthesized import lists with a trailing comma and wraps long imports differently than when the files were last formatted, so make format rewrites them on every run even though nothing is wrong with the code. Apply make format to the two drifted import statements so the tree matches the formatter's output and make format becomes a no-op: - src/python/jw/util/log.py: trailing comma in the jw.pkg.lib.log import list - src/python/jwutils/db/schema/CompositeForeignKey.py: wrap the CompositeForeignKey import in parentheses Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.2 Signed-off-by: Jan Lindemann --- src/python/jw/util/log.py | 2 +- src/python/jwutils/db/schema/CompositeForeignKey.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/python/jw/util/log.py b/src/python/jw/util/log.py index 500f0db..b694852 100644 --- a/src/python/jw/util/log.py +++ b/src/python/jw/util/log.py @@ -25,7 +25,7 @@ from jw.pkg.lib.log import ( set_flags, set_level, set_module_name_length, - throw + throw, ) slog = log diff --git a/src/python/jwutils/db/schema/CompositeForeignKey.py b/src/python/jwutils/db/schema/CompositeForeignKey.py index 66da02f..35a9c85 100644 --- a/src/python/jwutils/db/schema/CompositeForeignKey.py +++ b/src/python/jwutils/db/schema/CompositeForeignKey.py @@ -1,6 +1,7 @@ # ruff: noqa: E501 -from jw.util.db.schema.CompositeForeignKey import \ - CompositeForeignKey as CompositeForeignKey +from jw.util.db.schema.CompositeForeignKey import ( + CompositeForeignKey as CompositeForeignKey, +) __all__ = [ "CompositeForeignKey", -- 2.56.1