From 6734980bba1b6d1454918fbc25fe9a06b2ffa528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 8 Sep 2019 16:36:40 +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 676bf74..878a33b 100644 --- a/README.md +++ b/README.md @@ -1278,7 +1278,7 @@ class MyAbcSequence(collections.abc.Sequence): +------------+----------+------------+----------+--------------+ ``` -* **Other useful ABCs that automatically generate missing methods are: MutableSequence, Set, MutableSet, Mapping and MutableMapping — `'.__abstractmethods__'`.** +* **Other ABCs that generate missing methods are: MutableSequence, Set, MutableSet, Mapping and MutableMapping. Required methods: `'.__abstractmethods__'`.** Enum diff --git a/index.html b/index.html index 3dacab2..4ad452d 100644 --- a/index.html +++ b/index.html @@ -1206,7 +1206,7 @@ lock = threading.RLock(); with lock: ...
    -
  • Other useful ABCs that automatically generate missing methods are: MutableSequence, Set, MutableSet, Mapping and MutableMapping — '<abc>.__abstractmethods__'.
  • +
  • Other ABCs that generate missing methods are: MutableSequence, Set, MutableSet, Mapping and MutableMapping. Required methods: '<abc>.__abstractmethods__'.

#Enum

from enum import Enum, auto