From d82fab7a32fce844c16f5c7a049e3a28812aef5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 7 Jul 2019 17:44:20 +0200 Subject: [PATCH] Iterable duck types --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a96197..0009fc7 100644 --- a/README.md +++ b/README.md @@ -1242,7 +1242,7 @@ class MyAbcSequence(collections.abc.Sequence): return self.a[i] ``` -#### Table of the required and available methods: +#### Table of required and available special methods: ```text +------------+----------+------------+----------+--------------+ | | Iterable | Collection | Sequence | abc.Sequence | diff --git a/index.html b/index.html index 60061f4..bdd009b 100644 --- a/index.html +++ b/index.html @@ -1154,7 +1154,7 @@ con = sqlite3.connect('<path>'); def __getitem__(self, i): return self.a[i] -

Table of the required and available methods:

+

Table of required and available special methods:

┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓
 ┃            │ Iterable │ Collection │ Sequence │ abc.Sequence ┃
 ┠────────────┼──────────┼────────────┼──────────┼──────────────┨