Skip to content

Commit

Permalink
Merge pull request #1 from hros/chain-doc-patch-1
Browse files Browse the repository at this point in the history
Update README.md - chain only on iterables
  • Loading branch information
hros authored Apr 4, 2024
2 parents b129766 + 468b47a commit 2f98338
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 2f98338

Please sign in to comment.