>>> from pampy import match, _
>>> _
_
>>> def matcher(val):
... return match(val, int, "int", _, "something else",)
>>> matcher("hi")
'something else'
>>> matcher(1)
'int'
>>> matcher("hi")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in matcher
File "/usr/local/lib/python3.7/site-packages/pampy/pampy.py", line 186, in match
raise MatchError("'_' not provided. This case is not handled:\n%s" % str(var))
pampy.pampy.MatchError: '_' not provided. This case is not handled:
hi
'_' not provided. This case is not handled:
hi