Bryan Forbes and GitHub
0ea098567c
[commands] Use ... for Command and Group typing
2023-03-01 22:47:17 -05:00
Bryan Forbes and GitHub
4d51f68864
[commands] Fix some more partially uknown typing errors
2023-03-01 19:37:38 -05:00
Bryan Forbes and GitHub
1de3562f34
Fix partially uknown typing errors
2023-03-01 19:14:50 -05:00
Bryan Forbes and GitHub
b12b4b18fd
Mark public callbacks as positional-only
2022-08-22 15:21:19 -04:00
Bryan Forbes and GitHub
63b32994f4
Improve TranslationContext type narrowing using a tagged union
2022-08-15 08:17:41 -04:00
Bryan Forbes and GitHub
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
2022-08-04 22:46:02 -04:00
Bryan Forbes and GitHub
07ad6951fb
Fix various generics throughout the public interface
...
Fix CooldownMapping generic typing and ensure other public methods
have proper generics
2022-08-01 06:24:55 -04:00
Bryan Forbes and GitHub
b7dd97dca9
[commands] Change Command.extras to match typing in app commands
2022-06-28 16:20:15 -04:00
Bryan Forbes and GitHub
0eb3d26343
Add generic arguments for extras typing
2022-06-27 22:35:22 -04:00
Bryan Forbes and GitHub
4a73de946a
Change dm_permissons to dm_permission
2022-05-02 18:25:42 -04:00
Bryan Forbes and GitHub
7fca030107
Add Group class arguments for permissions v2
2022-04-28 20:47:54 -04:00
Bryan Forbes and GitHub
06c257760b
Update types to use Awaitable where possible
2022-03-30 22:00:24 -04:00
Bryan Forbes and GitHub
0a8065606a
Update parent reference of Group children
2022-03-30 19:12:39 -04:00
Bryan Forbes and GitHub
8524bfb54d
Fix caching of UnionType instead of resolved typing.Union
2022-03-28 16:24:03 -04:00
062f4d6f87
Change some methods to use positional-only marker
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com >
2022-03-22 18:52:25 -04:00
Bryan Forbes and GitHub
79bae47992
flag_value should not be a generic class
...
Since there is no generic information in `flag_value.__init__()`,
`flag_value` descriptors get stored as `flag_value[<nothing>]` in mypy
strict mode and then the `__get__` overloads never match. This leads to
errors when using things like `permissions_instance.embed_links` since
`<nothing>` never matches `Permissions`.
The generic inheritance isn't needed at all since the type information
we care about comes from the call site of `__get__` and not the
instantiation of the descriptor.
2021-08-18 01:05:08 -04:00
Bryan Forbes and GitHub
c325918ae6
Only run main() if the module is being executed as a script
2021-02-28 23:33:18 -05:00
Bryan Forbes and GitHub
16e0adb315
[commands] Handle positional-only parameters in bot commands
2021-02-17 23:48:09 -05:00
Bryan Forbes and GitHub
80dd2c63c0
Fix Team.icon_url_as format argument default value
2020-11-28 19:58:48 -05:00
Bryan Forbes and GitHub
d7aa18beed
Extend __path__ with pkgutil to allow editable extensions
2020-08-07 01:11:20 -04:00
Bryan Forbes
e2478b17c9
Bump aiohttp requirement and fix AsyncWebhookAdapter
2019-02-12 18:55:19 -06:00
Bryan Forbes and Rapptz
d7218259aa
Call Http.start_group() in ClientUser.create_group()
2018-08-28 23:50:55 -04:00
Bryan Forbes and Rapptz
b6824c073e
Ensure large guilds are properly appended to the ready state guild list
2018-08-28 23:50:55 -04:00
Bryan Forbes and Rapptz
b3bfec9119
Fix CallMessage.duration calculation
2018-08-28 23:50:54 -04:00
Bryan Forbes
deda5c4e97
Fix behavior of reaction type-conversion
2018-08-25 14:38:19 -05:00
Bryan Forbes and Rapptz
ef89d3aa22
Add support for converters working with PEP-563
2018-08-22 21:53:47 -04:00