class Foo:
def __init__(self):
self.bar = True
def baz(self):
return True
class Foo:
def __init__(self):
self.bar = True
def baz(self):
return self.bar
Used when a method doesn’t use its bound instance, and so could be written as a function.