1818
1919 from utils import AllChannelTypes , TeXBotApplicationContext , TeXBotAutocompleteContext
2020
21- __all__ : " Sequence[str]" = ("ArchiveCommandsCog" ,)
21+ __all__ : Sequence [str ] = ("ArchiveCommandsCog" ,)
2222
2323
24- logger : " Final[Logger]" = logging .getLogger ("TeX-Bot" )
24+ logger : Final [Logger ] = logging .getLogger ("TeX-Bot" )
2525
2626
2727class ArchiveCommandsCog (TeXBotBaseCog ):
2828 """Cog class that defines the "/archive" command and its call-back method."""
2929
3030 @staticmethod
3131 async def autocomplete_get_non_archival_categories (
32- ctx : " TeXBotAutocompleteContext" ,
33- ) -> " AbstractSet[discord.OptionChoice] | AbstractSet[str]" :
32+ ctx : TeXBotAutocompleteContext ,
33+ ) -> AbstractSet [discord .OptionChoice ] | AbstractSet [str ]:
3434 """
3535 Autocomplete callable that generates the set of available selectable categories.
3636
@@ -50,8 +50,8 @@ async def autocomplete_get_non_archival_categories(
5050
5151 @staticmethod
5252 async def autocomplete_get_archival_categories (
53- ctx : " TeXBotAutocompleteContext" ,
54- ) -> " AbstractSet[discord.OptionChoice] | AbstractSet[str]" :
53+ ctx : TeXBotAutocompleteContext ,
54+ ) -> AbstractSet [discord .OptionChoice ] | AbstractSet [str ]:
5555 """
5656 Autocomplete callable that generates the set of categories to hold archived channels.
5757
@@ -72,8 +72,8 @@ async def autocomplete_get_archival_categories(
7272
7373 @staticmethod
7474 async def autocomplete_get_non_archived_channels (
75- ctx : " TeXBotAutocompleteContext" ,
76- ) -> " AbstractSet[discord.OptionChoice] | AbstractSet[str]" :
75+ ctx : TeXBotAutocompleteContext ,
76+ ) -> AbstractSet [discord .OptionChoice ] | AbstractSet [str ]:
7777 """
7878 Autocomplete callable that generates the set of channels that the user can archive.
7979
@@ -123,7 +123,7 @@ async def autocomplete_get_non_archived_channels(
123123 @CommandChecks .check_interaction_user_in_main_guild
124124 async def archive_category (
125125 self ,
126- ctx : " TeXBotApplicationContext" ,
126+ ctx : TeXBotApplicationContext ,
127127 str_category_id : str ,
128128 allow_archivist : bool , # noqa: FBT001
129129 ) -> None :
@@ -236,7 +236,7 @@ async def archive_category(
236236 @CommandChecks .check_interaction_user_has_committee_role
237237 @CommandChecks .check_interaction_user_in_main_guild
238238 async def archive_channel (
239- self , ctx : " TeXBotApplicationContext" , str_channel_id : str , str_category_id : str
239+ self , ctx : TeXBotApplicationContext , str_channel_id : str , str_category_id : str
240240 ) -> None :
241241 """
242242 Definition & callback response of the "archive-channel" command.
0 commit comments