Fix incorrect Select max option condition

This commit is contained in:
Jun-Ah 준아
2024-07-05 16:18:01 -04:00
committed by GitHub
parent 6643784d33
commit 97ca618570
2 changed files with 40 additions and 1 deletions
+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)