mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 00:50:40 +00:00
Do not redeclare __new__ in python stubs
This commit is contained in:
@@ -643,8 +643,9 @@ class ModuleRedeclarator(object):
|
||||
elif str(descriptor).startswith('<staticmethod'):
|
||||
deco = "staticmethod"
|
||||
if p_name == "__new__":
|
||||
deco = "staticmethod"
|
||||
deco_comment = " # known case of __new__"
|
||||
# do not redeclare __new__, it is not needed in the stub
|
||||
# and causes problems with the known type of simple declarations
|
||||
return
|
||||
|
||||
action("redoing innards of func %r of class %r", p_name, p_class)
|
||||
if deco and HAS_DECORATORS:
|
||||
|
||||
Reference in New Issue
Block a user