From ef64090704b0670dc53a09ec8f0fe82b168d35b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 19 Dec 2018 10:33:53 +0100 Subject: [PATCH] Enum --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 448fd7c..7f6ff10 100644 --- a/README.md +++ b/README.md @@ -552,7 +552,7 @@ Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3}) # Functions can not be values, so they must be enclosed in tuple: LogicOp = Enum('LogicOp', {'AND': (lambda l, r: l and r, ), 'OR' : (lambda l, r: l or r, )} -# But 'list()' will only work if there is another value in tuple: +# But 'list()' will only work if there is another value in the tuple: LogicOp = Enum('LogicOp', {'AND': (auto(), lambda l, r: l and r), 'OR' : (auto(), lambda l, r: l or r)} ```