|
|
@ -1045,7 +1045,7 @@ Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span clas |
|
|
|
|
|
|
|
|
|
|
|
<div><h3 id="sortable">Sortable</h3><ul> |
|
|
|
<li><strong>With 'total_ordering' decorator you only need to provide eq() and one of lt(), gt(), le() or ge() special methods.</strong></li> |
|
|
|
<li><strong>With total_ordering decorator you only need to provide eq() and one of lt(), gt(), le() or ge() special methods.</strong></li> |
|
|
|
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> total_ordering |
|
|
|
|
|
|
|
<span class="hljs-meta">@total_ordering</span> |
|
|
|