mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Instead of just relying on the fact that some of parameters is named "self". GitOrigin-RevId: c9c0d1d4bbcecb93a84a3dc451485fa70790ca6d
20 lines
211 B
Python
20 lines
211 B
Python
class A:
|
||
def fo<caret>o(self, a, b):
|
||
pass
|
||
|
||
class B(A):
|
||
def foo(self, a, b):
|
||
pass
|
||
|
||
class С(A):
|
||
def foo(self, a, b):
|
||
pass
|
||
|
||
|
||
a = A()
|
||
a.foo(1, 2)
|
||
A.foo(a, 1, 2)
|
||
|
||
b = B()
|
||
b.foo(2, 2)
|
||
B.foo(b, 2, 2) |