Closed hros closed 7 months ago
the docs state that
[1, 2, [3]] | chain
Gives a TypeError: chain argument #1 must support iteration Consider using traverse.
chain argument #1 must support iteration
However, the command does not give an error but rather returns a <itertools.chain object> Only when casting to a list:
<itertools.chain object>
list
list([1, 2, [3]] | chain)
there is an error TypeError: 'int' object is not iterable
TypeError: 'int' object is not iterable
Thanks for reporting, would you like to open a PR to fix it?
created a PR
Thanks!
the docs state that
Gives a TypeError:
chain argument #1 must support iteration
Consider using traverse.However, the command does not give an error but rather returns a
<itertools.chain object>
Only when casting to alist
:there is an error
TypeError: 'int' object is not iterable