

@property
def option_count(self):
    ' Return the total amount of options. (In all categories together.) '
    return sum((len(category.options) for category in self.options))

dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py PythonInput.option_count/original