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:
parent
9d0a3f8857
commit
f7940c252f
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue