Skip to content

Commit ab000ac

Browse files
authored
Merge branch 'master' into appinf
2 parents 9eecbfa + 8f851aa commit ab000ac

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ These changes are available on the `master` branch, but have not yet been releas
2424

2525
### Fixed
2626

27+
- Fixed breaking change in `ui.Select` Generic typing by adding default values to
28+
TypeVars. ([#3002](https://github.com/Pycord-Development/pycord/pull/3002))
29+
2730
### Deprecated
2831

2932
### Removed

discord/ui/select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171

7272
ST = TypeVar("ST", bound="Snowflake | str", covariant=True, default=Any)
7373
S = TypeVar("S", bound="Select")
74-
V = TypeVar("V", bound="BaseView", covariant=True)
75-
M = TypeVar("M", bound="DesignerModal", covariant=True)
74+
V = TypeVar("V", bound="BaseView", covariant=True, default="BaseView")
75+
M = TypeVar("M", bound="DesignerModal", covariant=True, default="DesignerModal")
7676

7777

7878
class Select(ViewItem[V], ModalItem[M], Generic[V, M, ST]):

0 commit comments

Comments
 (0)