Skip to content

Commit 74cb6db

Browse files
committed
Duck types
1 parent 87fc2f9 commit 74cb6db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ class MyCollection:
12621262
```
12631263

12641264
### Sequence
1265-
* **Only required methods are len() and getitem().**
1265+
* **Only required methods are getitem() and len().**
12661266
* **Getitem() should return an item at the passed index or raise IndexError.**
12671267
* **Iter() and contains() automatically work on any object that has getitem() defined.**
12681268
* **Reversed() automatically works on any object that has getitem() and len() defined.**

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@
10811081

10821082

10831083
<div><h3 id="sequence">Sequence</h3><ul>
1084-
<li><strong>Only required methods are len() and getitem().</strong></li>
1084+
<li><strong>Only required methods are getitem() and len().</strong></li>
10851085
<li><strong>Getitem() should return an item at the passed index or raise IndexError.</strong></li>
10861086
<li><strong>Iter() and contains() automatically work on any object that has getitem() defined.</strong></li>
10871087
<li><strong>Reversed() automatically works on any object that has getitem() and len() defined.</strong></li>

0 commit comments

Comments
 (0)