From 2515fe0d319b88dd4111fa876e06b6b7d9453d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 29 Sep 2019 17:47:12 +0200 Subject: [PATCH] Sortable --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c79e428..f87bc0e 100644 --- a/README.md +++ b/README.md @@ -1105,7 +1105,7 @@ class MyHashable: ``` ### Sortable -* **With 'total_ordering' decorator you only need to provide eq() and one of lt(), gt(), le() or ge() special methods.** +* **With total_ordering decorator you only need to provide eq() and one of lt(), gt(), le() or ge() special methods.** ```python from functools import total_ordering diff --git a/index.html b/index.html index b98bfbc..f184219 100644 --- a/index.html +++ b/index.html @@ -1045,7 +1045,7 @@ Z = dataclasses.make_dataclass('Z', [

Sortable

from functools import total_ordering
 
 @total_ordering