Skip to content

Commit 5cda9e5

Browse files
fix: correct default type from ellipsis to none (#3171)
* fix: correct default type from ellipsis to none * chore: changelog Fixed a TypeError in Label.set_select when default_values are not provided. Signed-off-by: plun1331 <plun1331@gmail.com> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: plun1331 <plun1331@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a5872bd commit 5cda9e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

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

1717
### Fixed
1818

19+
- Fixed a `TypeError` when using `Label.set_select` and not providing `default_values`.
20+
([#3171](https://github.com/Pycord-Development/pycord/pull/3171))
21+
1922
### Deprecated
2023

2124
### Removed

discord/ui/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def set_select(
311311
channel_types: list[ChannelType] | None = None,
312312
required: bool = True,
313313
id: int | None = None,
314-
default_values: Sequence[SelectDefaultValue] | None = ...,
314+
default_values: Sequence[SelectDefaultValue] | None = None,
315315
) -> Self:
316316
"""Set this label's item to a select menu.
317317

0 commit comments

Comments
 (0)