JulienPalard / Pipe

A Python library to use infix notation in Python
MIT License
1.95k stars 113 forks source link

documentation correction #102

Closed hros closed 7 months ago

hros commented 7 months ago

the docs state that

[1, 2, [3]] | chain

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 a list:

list([1, 2, [3]] | chain)

there is an error TypeError: 'int' object is not iterable

JulienPalard commented 7 months ago

Thanks for reporting, would you like to open a PR to fix it?

hros commented 7 months ago

created a PR

JulienPalard commented 7 months ago

Thanks!