class B: def foo(self, arg1, arg2=None): pass class C(B): def foo(self, arg1=None): #fail pass