Files
openide/python/testData/completion/ancestorHasDunderNewMethod.after.py
Semyon Proshev 893cea67b1 PY-20017 Fixed: Unresolved attributes for child class if __new__ is implemented in parent class
For 'self' and 'cls' parameters return containing class as a type
2016-08-02 16:29:59 +03:00

9 lines
180 B
Python

class A(object):
@staticmethod
def __new__(cls, *more):
return super(A, cls).__new__(cls, *more)
class B(A):
def test_method(self):
self.test_method()