self
as the first argument PYL-E0213374 rv = formatter.vformat(s, args, kwargs)
375 return type(s)(rv)
376
377 def call(378 __self, # noqa: B902
379 __context: Context,
380 __obj: t.Any,
The first argument of instance methods must be named self
. This is considered an error since this convention is so common that you shouldn't break it.
class Car:
def __init__(this, color):
this.color = color
def run(this):
print(f'I am a {this.color} car')
class Car:
def __init__(self, color):
self.color = color
def run(self):
print(f'I am a {self.color} car')