Browse Source

Duck types

pull/36/head
Jure Šorn 5 years ago
parent
commit
87781a0ff9
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1101,7 +1101,7 @@ class MySortable:
```
### Iterator
* **Next() should return next item or raise 'StopIteration'.**
* **Next() should return the next item or raise 'StopIteration'.**
* **Iter() should return 'self'.**
```python
class Counter:

2
index.html

@ -1035,7 +1035,7 @@ Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span clas
</code></pre>
<h3 id="iterator-1">Iterator</h3>
<ul>
<li><strong>Next() should return next item or raise 'StopIteration'.</strong></li>
<li><strong>Next() should return the next item or raise 'StopIteration'.</strong></li>
<li><strong>Iter() should return 'self'.</strong></li>
</ul>
<pre><code class="python language-python hljs"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Counter</span>:</span>

Loading…
Cancel
Save