From e16184679ef1bf716987032351bb3d71a7eb0efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 28 Nov 2018 17:34:19 +0100 Subject: [PATCH] Enum --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6e9f007..752eaee 100644 --- a/README.md +++ b/README.md @@ -505,6 +505,7 @@ list(a.name for a in ) # == ['enum1', 'enum2', ...] random.choice(list()) # == random ``` +#### Inline: ```python Cutlery = Enum('Cutlery', ['knife', 'fork', 'spoon']) Cutlery = Enum('Cutlery', 'knife fork spoon')