Python: Consider __new__ a classmethod

This commit is contained in:
Rasmus Wriedt Larsen
2022-10-12 14:29:54 +02:00
parent f040ad8dac
commit 6fefd54533
3 changed files with 31 additions and 18 deletions

View File

@@ -9,7 +9,7 @@
class WithNewImpl(object):
def __new__(cls):
print("WithNewImpl.foo")
cls.foo() # $ call=cls.foo() callType=CallTypeClassMethod MISSING: arg[self]=cls
cls.foo() # $ call=cls.foo() callType=CallTypeClassMethod arg[self]=cls
@classmethod
def foo(cls):