mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
35 lines
579 B
Python
35 lines
579 B
Python
class C1:
|
|
def m1(self):
|
|
print("C1.m1()")
|
|
|
|
def m2(self, x):
|
|
return x
|
|
|
|
@staticmethod
|
|
def m3(x):
|
|
return x
|
|
|
|
@classmethod
|
|
def m4(cls, x):
|
|
return x
|
|
|
|
class C2(C1):
|
|
def m1(self):
|
|
print("C2.m1()")
|
|
|
|
def c2only_m1(self, x):
|
|
return x
|
|
|
|
class C3:
|
|
def get_C2_instance():
|
|
return C2()
|
|
|
|
class C3nested:
|
|
def m5(self, x):
|
|
return x
|
|
|
|
def top_level_function(x, /, y, *, z):
|
|
return [x, y, z]
|
|
|
|
def func_with_fancy_args(*args, **kwargs):
|
|
return args, kwargs |