mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
Code cleanup for "membersManager" package to make it type-safe
PullUp: Refactored to use Processor on MembersManager StatementList refactoring PullUp: processor added PyExtractSuperClass and PyPullMembersUp refactored and covered with tests. PyExtractSuperClass and PyPullMembersUp refactored and covered with tests.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class Parent(object):
|
||||
C = 12
|
||||
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
self.foo = 12
|
||||
|
||||
|
||||
class Child(Parent, object):
|
||||
def __init__(self): pass
|
||||
|
||||
AC = 11
|
||||
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
|
||||
class Bar(object):
|
||||
pass
|
||||
@@ -0,0 +1,19 @@
|
||||
class Parent(object):
|
||||
C = 12
|
||||
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
|
||||
class Child(Parent, object):
|
||||
def __init__(self):
|
||||
self.foo = 12
|
||||
|
||||
AC = 11
|
||||
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
|
||||
class Bar(object):
|
||||
pass
|
||||
@@ -52,4 +52,11 @@ class HugeChild(SubParent1, date): #SubParent1 is disabled
|
||||
|
||||
@staticmethod
|
||||
def bad_method(): #Code has errors, so method should be not be marked as static
|
||||
pass
|
||||
pass
|
||||
|
||||
class Bar(object):
|
||||
C = 1
|
||||
|
||||
class Foo(Bar):
|
||||
def __init__(self):
|
||||
self.foo = 12
|
||||
Reference in New Issue
Block a user