diff options
| author | Bryan Forbes <[email protected]> | 2021-08-18 00:05:08 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-18 01:05:08 -0400 |
| commit | 79bae4799222c57335eb008979d09fd80739f5a4 (patch) | |
| tree | cecfb1aec1820cd966a54a5f39bfd46cec07909f /docs/_static/codeblocks.css | |
| parent | [commands] Typehinted errors.py (diff) | |
| download | discord.py-79bae4799222c57335eb008979d09fd80739f5a4.tar.xz discord.py-79bae4799222c57335eb008979d09fd80739f5a4.zip | |
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.
Diffstat (limited to 'docs/_static/codeblocks.css')
0 files changed, 0 insertions, 0 deletions