@@ -108,7 +108,7 @@ def __init__(
108108 self .defaults = defaults
109109 self .callback = callback
110110
111- def _check_defaults (self , local , remote ) -> bool | None :
111+ def _check_defaults (self , local : Any , remote : Any ) -> bool | None :
112112 defaults = (local in self .defaults ) + (remote in self .defaults )
113113 if defaults == 2 :
114114 # Both are COMMAND_DEFAULTS, so they can be counted as the same
@@ -120,7 +120,7 @@ def _check_defaults(self, local, remote) -> bool | None:
120120 # Only one is a default, so the command must be out of sync
121121 return False
122122
123- def check (self , local , remote ) -> bool :
123+ def check (self , local : Any , remote : Any ) -> bool :
124124 """
125125 Compares the local and remote objects.
126126
@@ -137,7 +137,7 @@ def check(self, local, remote) -> bool:
137137
138138class DefaultSetComparison (DefaultComparison ):
139139 @override
140- def check (self , local , remote ) -> bool :
140+ def check (self , local : Any , remote : Any ) -> bool :
141141 try :
142142 local = set (local )
143143 except TypeError :
@@ -174,7 +174,7 @@ def _compare_defaults(
174174OPTION_DEFAULT_VALUES = ([], MISSING )
175175
176176
177- def _option_comparison_check (local , remote ) -> bool :
177+ def _option_comparison_check (local : Any , remote : Any ) -> bool :
178178 matching = (local in OPTION_DEFAULT_VALUES ) + (remote in OPTION_DEFAULT_VALUES )
179179 if matching == 2 :
180180 return True
@@ -192,7 +192,7 @@ def _option_comparison_check(local, remote) -> bool:
192192CHOICES_DEFAULT_VALUES = ([], MISSING )
193193
194194
195- def _choices_comparison_check (local , remote ) -> bool :
195+ def _choices_comparison_check (local : Any , remote : Any ) -> bool :
196196 matching = (local in CHOICES_DEFAULT_VALUES ) + (remote in CHOICES_DEFAULT_VALUES )
197197 if matching == 2 :
198198 return True
@@ -515,8 +515,8 @@ def _check_command(cmd: ApplicationCommand, match: Mapping[str, Any]) -> bool:
515515 "id" : int (registered_commands_dict [cmd .name ]["id" ]),
516516 }
517517 )
518+ # We have this command registered and it's the same
518519 else :
519- # We have this command registered and it's the same
520520 return_value .append (
521521 {"command" : cmd , "action" : None , "id" : int (match ["id" ])}
522522 )
0 commit comments