Skip to content

Commit 3f2daf8

Browse files
committed
Magic to special
1 parent 4f92265 commit 3f2daf8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ class C(A, B): pass
872872
```
873873

874874
### Dataclass
875-
**Decorator that automatically generates init(), repr() and eq() magic methods.**
875+
**Decorator that automatically generates init(), repr() and eq() special methods.**
876876
```python
877877
from dataclasses import dataclass, field
878878

@@ -934,7 +934,7 @@ class MyHashable:
934934
```
935935

936936
### Sortable
937-
* **With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() magic methods.**
937+
* **With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() special methods.**
938938
```python
939939
from functools import total_ordering
940940

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ <h3 id="multipleinheritance">Multiple Inheritance</h3>
777777
[&lt;<span class="hljs-class"><span class="hljs-title">class</span> '<span class="hljs-title">C</span>'&gt;, &lt;<span class="hljs-title">class</span> '<span class="hljs-title">A</span>'&gt;, &lt;<span class="hljs-title">class</span> '<span class="hljs-title">B</span>'&gt;, &lt;<span class="hljs-title">class</span> '<span class="hljs-title">object</span>'&gt;]
778778
</span></code></pre>
779779
<h3 id="dataclass">Dataclass</h3>
780-
<p><strong>Decorator that automatically generates init(), repr() and eq() magic methods.</strong></p>
780+
<p><strong>Decorator that automatically generates init(), repr() and eq() special methods.</strong></p>
781781
<pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> dataclasses <span class="hljs-keyword">import</span> dataclass, field
782782

783783
<span class="hljs-meta">@dataclass(order=False, frozen=False)</span>
@@ -833,7 +833,7 @@ <h3 id="hashable">Hashable</h3>
833833
</code></pre>
834834
<h3 id="sortable">Sortable</h3>
835835
<ul>
836-
<li><strong>With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() magic methods.</strong></li>
836+
<li><strong>With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() special methods.</strong></li>
837837
</ul>
838838
<pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> total_ordering
839839

0 commit comments

Comments
 (0)