From fffcd7766285133b88433706ed32bb9b1dee781c Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Mon, 13 Nov 2017 00:22:59 -0700 Subject: [PATCH] Allow types and 'any' in variant definitions. (#4524) - Previously variant values had to be a tuple or a callable predicate. - This allows 'any' as shorthand for `lambda x: True` and type objects as shorthand for "any value of this type". - Makes variant definitions more readable, keeps lambdas out of packages for common cases.