Fix incorrect Select max option condition

This commit is contained in:
Jun-Ah 준아
2024-07-06 05:18:01 +09:00
committed by GitHub
parent 6643784d33
commit 97ca618570
2 changed files with 40 additions and 1 deletions

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)