where_digit(text) returning a tuple of three booleans: does r'\d+' produce a hit with re.match (start-anchored), re.search (anywhere), and re.fullmatch (entire string)? For 'ab12' that is (False, True, False) — the distinction interviews love.where_digit('ab12')(False, True, False)
Digits exist but neither start nor span the whole string.
match only anchors at position 0.
bool(m) converts a Match/None cleanly.