You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> 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
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: