Skip to content
Snippets Groups Projects
Unverified Commit fffcd776 authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

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.
parent 9b80f2fd
No related branches found
No related tags found
No related merge requests found
Showing
No files found.
with 0 additions and 0 deletions
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment