mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Python: Fix self-passing problems
This also fixes performance problems for pandas-dev/pandas
This commit is contained in:
@@ -21,7 +21,7 @@ class Base(object):
|
||||
class A(Base):
|
||||
def foo(self):
|
||||
print("A.foo")
|
||||
self.bar() # $ pt,tt=A.bar SPURIOUS: tt=B.bar
|
||||
self.bar() # $ pt,tt=A.bar
|
||||
|
||||
def not_called(self):
|
||||
self.bar() #$ pt,tt=A.bar
|
||||
@@ -50,7 +50,7 @@ class X(object):
|
||||
|
||||
def foo(self):
|
||||
print("X.foo")
|
||||
self.meth() # $ pt,tt=X.meth SPURIOUS: tt=Y.meth
|
||||
self.meth() # $ pt,tt=X.meth
|
||||
|
||||
|
||||
class Y(object):
|
||||
|
||||
Reference in New Issue
Block a user