mirror of
https://github.com/github/codeql.git
synced 2026-05-31 11:31:23 +02:00
12 lines
277 B
Python
12 lines
277 B
Python
|
|
class Base:
|
|
def runsource(self, source, filename="<input>"):
|
|
...
|
|
|
|
|
|
class Sub(Base):
|
|
def runsource(self, source): # BAD: Does not match the signature of overridden method.
|
|
...
|
|
|
|
def run(obj: Base):
|
|
obj.runsource("source", filename="foo.txt") |