def option_count(self) -> int:
        "Return the total amount of options. (In all categories together.)"
        return sum(len(category.options) for category in self.options)
Return the total amount of options. (In all categories together.)
src/ptpython/python_input.py