Rapptz / discord-ext-menus

MIT License
234 stars 87 forks source link

Unresolved attribute reference 'current_page' for class 'Menu' #18

Closed rosesaredumb closed 3 years ago

rosesaredumb commented 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
Rapptz commented 3 years ago

This is a linter error. Type hint the argument or just ignore it, e.g. async def format_page(self, menu: menu.MenuPages, entries):