Fix various generics throughout the public interface

Fix CooldownMapping generic typing and ensure other public methods 
have proper generics
This commit is contained in:
Bryan Forbes
2022-08-01 05:24:55 -05:00
committed by GitHub
parent 6e3c359373
commit 07ad6951fb
3 changed files with 33 additions and 34 deletions

View File

@@ -134,7 +134,7 @@ else:
AutocompleteCallback = Callable[..., Coro[T]]
CheckInputParameter = Union['Command[Any, ..., Any]', 'ContextMenu', CommandCallback, ContextMenuCallback]
CheckInputParameter = Union['Command[Any, ..., Any]', 'ContextMenu', 'CommandCallback[Any, ..., Any]', ContextMenuCallback]
# The re module doesn't support \p{} so we have to list characters from Thai and Devanagari manually.
THAI_COMBINING = r'\u0e31-\u0e3a\u0e47-\u0e4e'