I tried some code like:
class StaticPageStage(StageBase):
key = Segments.STATICPAGE
_preprocessors = [FacebookGraphStage(), ]
def __init__():
pass
def process(self, data):
data = self._preprocess(data)
return self.handle_results(tuple(x for x in data))
but I get an exception that says TypeError: __init__() takes no arguments (1 given)
. What is wrong, and how do I fix it?