From fe034cf4304bcb5f3a4e3904c7389097d25f686b Mon Sep 17 00:00:00 2001 From: hros <2613469+hros@users.noreply.github.com> Date: Sat, 6 Apr 2024 10:39:43 +0300 Subject: [PATCH] Update README.md - chain only on iterables (#103) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 62fd331..c0bc887 100644 --- a/README.md +++ b/README.md @@ -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.