@classmethod<EOL><INDENT>def _decode_var(cls, string):<DEDENT>
str_match = cls.quoted_string_regex.match(string)<EOL>if str_match:<EOL><INDENT>return string.strip("<STR_LIT:'>" if str_match.groups()[<NUM_LIT:0>] else '<STR_LIT:">')<EOL><DEDENT>elif string.isdigit() and cls.is_digit_regex.match(string) is not None:<EOL><INDENT>return int(string)<EOL><DEDENT>elif string.lower() in ("<STR_LIT:true>", "<STR_LIT:false>"):<EOL><INDENT>return string.lower() == "<STR_LIT:true>"<EOL><DEDENT>elif string.lstrip("<STR_LIT:->").isdigit():<EOL><INDENT>try:<EOL><INDENT>return int(string)<EOL><DEDENT>except ValueError:<EOL><INDENT>return string<EOL><DEDENT><DEDENT>elif "<STR_LIT:.>" in string.lstrip("<STR_LIT:->"):<EOL><INDENT>try:<EOL><INDENT>return float(string)<EOL><DEDENT>except ValueError:<EOL><INDENT>return string<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return string<EOL><DEDENT>
Decodes a given string into the appropriate type in Python.

        :param str string: The string to decode
        :return: The decoded value