Add dummy implementation for constructor @overload

* This is needed to import the stubs when default parameters invoke constructors
  - like `ResourceId()`
This commit is contained in:
baldurk
2026-08-13 21:05:15 +01:00
parent 4a03afc0ce
commit 2fbf67493f
+2
View File
@@ -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("__"):