@classmethod
def _convert_int_digits_when_possible(cls, tokens):
    """
        Cast numbers to provide better callback arguments with actual numbers
        and not string representations.
        """
    converted_tokens = []
    for t in tokens:
        converted_tokens.append(int(t) if t.isdigit() else t)
    return converted_tokens
