From a50f864c143345f3693b70f7ca94b193024072e2 Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 18 Apr 2017 07:03:16 -0700 Subject: [PATCH] Ensure Unset is falsey --- disco/types/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disco/types/base.py b/disco/types/base.py index c3a061b..4c0d916 100644 --- a/disco/types/base.py +++ b/disco/types/base.py @@ -25,6 +25,9 @@ class Unset(object): def __nonzero__(self): return False + def __bool__(self): + return False + UNSET = Unset()