trogon icon indicating copy to clipboard operation
trogon copied to clipboard

click tuple with diffrent data types

Open j-eser opened this issue 1 year ago • 2 comments

If I try to use click.Tuple with 2 different data types i.e. type=click.Tuple([float, str]), default=(0.0, 'test') The TUI breaks with this error: TypeError: '<' not supported between instances of 'float' and 'str'

It works fine if no default is provided or the default is set to None. It also works if both tuple values are str. Not sure if that is a known issue or if it is on my side.

j-eser avatar May 31 '23 21:05 j-eser