Files
codeql/python/ql/test/2/query-tests/Classes/new-style/newstyle_test.py
2019-02-08 15:13:17 +00:00

21 lines
298 B
Python

#Only works for Python2
class OldStyle1:
__slots__ = [ 'a', 'b' ]
def __init__(self, a, b):
self.a = a
self.b = b
class OldStyle2:
def __init__(self, x):
super().__init__(x)
class NewStyle1(object):
def __init__(self, y):
super().__init__(y)