nextcord / nextcord-ext-menus

A nextcord menu and pagination extension that makes working with reaction menus and button component menus a bit easier
https://menus.docs.nextcord.dev
MIT License
26 stars 9 forks source link

Refactor type annotations and documentation #37

Closed DenverCoder1 closed 2 years ago

DenverCoder1 commented 2 years ago

Changes

  1. Fixed rst List documentation from :class:`List[nextcord.Embed]` to List[:class:`nextcord.Embed`] for proper linking.
  2. Documented the type of page in ListPageSource.format_page and AsyncIteratorPageSource.format_page
  3. Renamed _GroupByEntry named tuple to GroupByEntry and documented the class.
  4. Change type of SendKwargsType to allow any type to appear in the send kwargs returned by format_page. This includes files, stickers, bool, AllowedMentions, etc. to be passed in the kwargs dict.