Closed amitie10g closed 4 months ago
Hi, ('Single option')
is not a tuple, it results in a string value:
>>> options = ('Single option')
>>> options
'Single option'
This is a tuple with a single value: ('Single option',)
If there is no further questions, I'll close it. Feel free to reopen it if you have more context about this issue.
Hi, I found this issue when passing a tuple with dynamic ammount of values.
By passing a list (created by
split()
) with single value to pick(), it properly output the single option:However, when passing a tuple with a single value to pick():
every letter on the value become an option:
I'm using Python 3.11 with pick 2.2.0 on Windows.