Object.__init__(): Accept and forward kwargs

Object.__init__() takes no arguments and does not call
super().__init__(), so it is a dead end for cooperative __init__ chains.
Make __init__() accept **kwargs and forward them to super().__init__()
to fix that.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-08-20 08:11:19 +02:00
commit f7940c252f
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -17,7 +17,8 @@ class Object(abc.ABC):
raise TypeError("Expected a super() proxy")
return f"{owner.__module__}.{owner.__qualname__}"
def __init__(self) -> None:
def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs)
self.log_level = log.log_level()
@override