Skip to content

Commit

Permalink
Update README.md - chain only on iterables (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
hros authored Apr 6, 2024
1 parent b129766 commit fe034cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ Chain a sequence of iterables:
>>>
```

Warning : chain only unfold iterable containing ONLY iterables:
Warning : chain only unfolds an iterable containing ONLY iterables:

```python
[1, 2, [3]] | chain
list([1, 2, [3]] | chain)
```
Gives a `TypeError: chain argument #1 must support iteration`
Gives a `TypeError: 'int' object is not iterable`
Consider using traverse.


Expand Down

0 comments on commit fe034cf

Please sign in to comment.