From 3f2daf867ac12485de8ed6b6610be62db1eb287b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 16 Apr 2019 15:32:17 +0200 Subject: [PATCH] Magic to special --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d95b369..19e5d28 100644 --- a/README.md +++ b/README.md @@ -872,7 +872,7 @@ class C(A, B): pass ``` ### Dataclass -**Decorator that automatically generates init(), repr() and eq() magic methods.** +**Decorator that automatically generates init(), repr() and eq() special methods.** ```python from dataclasses import dataclass, field @@ -934,7 +934,7 @@ class MyHashable: ``` ### Sortable -* **With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() magic methods.** +* **With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() special methods.** ```python from functools import total_ordering diff --git a/index.html b/index.html index 620688c..d88d1cc 100644 --- a/index.html +++ b/index.html @@ -777,7 +777,7 @@ creature = Creature(Point(0, class 'C'>, <class 'A'>, <class 'B'>, <class 'object'>]

Dataclass

-

Decorator that automatically generates init(), repr() and eq() magic methods.

+

Decorator that automatically generates init(), repr() and eq() special methods.

from dataclasses import dataclass, field
 
 @dataclass(order=False, frozen=False)
@@ -833,7 +833,7 @@ creature  = Creature(Point(0, Sortable
 
    -
  • With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() magic methods.
  • +
  • With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() special methods.
from functools import total_ordering