Skip to content

Commit 46adb25

Browse files
fix: 🏷️ Fix types in Select.__init__ (#2746)
* 🏷️ Fix types in `Select.__init__` * 📝 CHANGELOG.md * 📝 CHANGELOG.md changes as requestes Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Paillat <jeremiecotti@ik.me> --------- Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: plun1331 <plun1331@gmail.com>
1 parent 49090d7 commit 46adb25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ These changes are available on the `master` branch, but have not yet been releas
9999
([#2709](https://github.com/Pycord-Development/pycord/pull/2709))
100100
- Fixed `ForumChannel.edit` allowing `default_reaction_emoji` to be `None`
101101
([#2739](https://github.com/Pycord-Development/pycord/pull/2739))
102+
- Fixed missing `None` type hints in `Select.__init__`.
103+
([#2746])(https://github.com/Pycord-Development/pycord/pull/2746)
102104

103105
### Changed
104106

discord/ui/select.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def __init__(
130130
placeholder: str | None = None,
131131
min_values: int = 1,
132132
max_values: int = 1,
133-
options: list[SelectOption] = None,
134-
channel_types: list[ChannelType] = None,
133+
options: list[SelectOption] | None = None,
134+
channel_types: list[ChannelType] | None = None,
135135
disabled: bool = False,
136136
row: int | None = None,
137137
) -> None:

0 commit comments

Comments
 (0)