Fix incorrect Select max option condition

This commit is contained in:
Jun-Ah 준아 authored and GitHub committed 2024-07-05 16:18:01 -04:00
1 parent 6643784d33
commit 97ca618570
2 files changed
+40 -1

No files matched your search

+1 -1
View File
@@ -499,7 +499,7 @@ class Select(BaseSelect[V]):
The number of options exceeds 25.
"""
if len(self._underlying.options) > 25:
if len(self._underlying.options) >= 25:
raise ValueError('maximum number of options already provided')
self._underlying.options.append(option)