Rule request
Thesis
We should forbid code like:
class Example(object):
def __init__(self):
self.callback = lambda arg: arg + 1
Reasoning
This will be very tricky to understand for users: example.callback(1) will look like a method, but it is not a method.
Rule request
Thesis
We should forbid code like:
Reasoning
This will be very tricky to understand for users:
example.callback(1)will look like a method, but it is not a method.