Closed rosesaredumb closed 3 years ago
how do i fix this? Unresolved attribute reference 'current_page' for class 'Menu'
async def format_page(self, menu, entries): offset = (menu.current_page * self.per_page) + 1
This is a linter error. Type hint the argument or just ignore it, e.g. async def format_page(self, menu: menu.MenuPages, entries):
async def format_page(self, menu: menu.MenuPages, entries):
how do i fix this? Unresolved attribute reference 'current_page' for class 'Menu'