From 2fbf67493fb7a6e93b2f982c2a338865f826221a Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 13 Aug 2026 01:00:25 +0100 Subject: [PATCH] Add dummy implementation for constructor @overload * This is needed to import the stubs when default parameters invoke constructors - like `ResourceId()` --- docs/stubgen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/stubgen.py b/docs/stubgen.py index af547d9a5..e0c4e2fcb 100644 --- a/docs/stubgen.py +++ b/docs/stubgen.py @@ -510,6 +510,8 @@ def gen_class(file: Stream, class_obj: Type): file.println("") if len(constructors) > 0: file.println("") + file.println("def __init__(self): pass") + file.println("") for item_name in class_obj.__dict__.keys(): if item_name.startswith("__"):