diff --git a/README.md b/README.md index a5fc558..8a96197 100644 --- a/README.md +++ b/README.md @@ -1231,7 +1231,7 @@ class MySequence: ### Collections.abc.Sequence * **It's a richer interface than the basic sequence.** * **Extending it generates iter(), contains(), reversed(), index(), and count().** -* **Unlike `'abc.Iterable'` and `'abc.Collection'`, it is not a duck type. That's why `'issubclass(MySequence, collections.abc.Sequence)'` would return 'False' even if it had all the methods defined.** +* **Unlike `'abc.Iterable'` and `'abc.Collection'`, it is not a duck type. That is why `'issubclass(MySequence, collections.abc.Sequence)'` would return 'False' even if it had all the methods defined.** ```python class MyAbcSequence(collections.abc.Sequence): def __init__(self, a): diff --git a/index.html b/index.html index 3546e72..60061f4 100644 --- a/index.html +++ b/index.html @@ -1144,7 +1144,7 @@ con = sqlite3.connect('<path>');
  • It's a richer interface than the basic sequence.
  • Extending it generates iter(), contains(), reversed(), index(), and count().
  • -
  • Unlike 'abc.Iterable' and 'abc.Collection', it is not a duck type. That's why 'issubclass(MySequence, collections.abc.Sequence)' would return 'False' even if it had all the methods defined.
  • +
  • Unlike 'abc.Iterable' and 'abc.Collection', it is not a duck type. That is why 'issubclass(MySequence, collections.abc.Sequence)' would return 'False' even if it had all the methods defined.
  • class MyAbcSequence(collections.abc.Sequence):
         def __init__(self, a):