Path 1: 142915 calls (0.53)

'' (142915)

'' (142915)

1def _unquote(string: str) -> str:
2    """Remove optional quotes (simple or double) from the string.
3
4    :param string: an optionally quoted string
5    :return: the unquoted string (or the input string if it wasn't quoted)
6    """
7    if not string:
8        return string
9    if string[0] in "\"'":
10        string = string[1:]
11    if string[-1] in "\"'":
12        string = string[:-1]
13    return string
            

Path 2: 127074 calls (0.47)

'max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))' (50014) 'fmt: on,fmt: off,noqa:,noqa,nosec,is...

'max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))' (50014) 'fmt: on,fmt: off,noqa:,noqa,nosec,is...

1def _unquote(string: str) -> str:
2    """Remove optional quotes (simple or double) from the string.
3
4    :param string: an optionally quoted string
5    :return: the unquoted string (or the input string if it wasn't quoted)
6    """
7    if not string:
8        return string
9    if string[0] in "\"'":
10        string = string[1:]
11    if string[-1] in "\"'":
12        string = string[:-1]
13    return string
            

Path 3: 31 calls (0.0)

"' '" (19) '"dummy value 1"' (3) '"dummy value 2"' (3) '\'print("I should just print")\'' (2) '"import sys; sys.path.append(r\'/var/folders/yp/qx0c...

' ' (19) 'dummy value 1' (3) 'dummy value 2' (3) 'print("I should just print")' (2) "import sys; sys.path.append(r'/var/folders/yp/qx0crmvd4sbck7ch...

1def _unquote(string: str) -> str:
2    """Remove optional quotes (simple or double) from the string.
3
4    :param string: an optionally quoted string
5    :return: the unquoted string (or the input string if it wasn't quoted)
6    """
7    if not string:
8        return string
9    if string[0] in "\"'":
10        string = string[1:]
11    if string[-1] in "\"'":
12        string = string[:-1]
13    return string