Files
openide/python/testData/inspections/PyMethodOverridingInspection/PositionalOnlyParameters.py
Mikhail Golubev de08c2a947 Fix Python tests after the proofreading
GitOrigin-RevId: 2f6eb873d6321ef00d293377ec2c97195f72da21
2020-11-30 22:17:55 +00:00

18 lines
434 B
Python

class A1:
def m(self, p1, /):
pass
class B1(A1):
def m<warning descr="Signature of method 'B1.m()' does not match signature of the base method in class 'A1'">(self, p1, p2)</warning>:
pass
class A2:
def baz(self, a, b):
pass
class B2(A2):
def baz<warning descr="Signature of method 'B2.baz()' does not match signature of the base method in class 'A2'">(self, a, /)</warning>:
pass