mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Python: Support Model Editor
This commit is contained in:
25
python/ql/test/modelling/MyPackage/Foo.py
Normal file
25
python/ql/test/modelling/MyPackage/Foo.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
0
python/ql/test/modelling/MyPackage/__init__.py
Normal file
0
python/ql/test/modelling/MyPackage/__init__.py
Normal file
Reference in New Issue
Block a user