mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
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:
@@ -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("__"):
|
||||
|
||||
Reference in New Issue
Block a user