-
-
Notifications
You must be signed in to change notification settings - Fork 480
fix: Fix breaking change in ui.Select Generic typing
#3002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix breaking change in ui.Select Generic typing
#3002
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/3002/head:pr-3002
git checkout pr-3002This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3002/head |
discord/ui/select.py
Outdated
|
|
||
| ST = TypeVar("ST", bound="Snowflake | str", covariant=True, default=Any) | ||
| S = TypeVar("S", bound="Select") | ||
| V = TypeVar("V", bound="BaseView", covariant=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| V = TypeVar("V", bound="BaseView", covariant=True) | |
| V = TypeVar("V", bound="BaseView", covariant=True, default="BaseView") |
ui.Select Generic typing
|
Changelog too pls |
ur sure fixing a typehint breaking change needs a changelog ? nice everything will be release at the same time in 2.7 ? |
Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
|
Yes |
Co-authored-by: Lumabots <144063653+Lumabots@users.noreply.github.com>
|
thx |
Summary
Before merging i would like paillat opinion on the rework of the generic, to know if maybe view and modal could be fused as we cant have both at the same time
Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.