From 5abe6e8e286ea5facf4736eaa37d4c8edc941192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 17 Apr 2019 15:40:24 +0200 Subject: [PATCH] Inline --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d0bb0f..f26755b 100644 --- a/README.md +++ b/README.md @@ -692,7 +692,7 @@ point = Point(0, 0) ```python from enum import Enum Direction = Enum('Direction', 'n e s w') -Cutlery = Enum('Cutlery', {'fork': 1, 'knife': 2, 'spoon': 3}) +direction = Direction.n ``` ```python diff --git a/index.html b/index.html index 846cd20..817b4d2 100644 --- a/index.html +++ b/index.html @@ -680,7 +680,7 @@ point = Point(0,
from enum import Enum
 Direction = Enum('Direction', 'n e s w')
-Cutlery   = Enum('Cutlery', {'fork': 1, 'knife': 2, 'spoon': 3})
+direction = Direction.n
 
from dataclasses import make_dataclass
 Creature  = make_dataclass('Creature', ['location', 'direction'])