fix format_token return typehints

This commit is contained in:
jesopo 2020-02-19 14:20:57 +00:00
parent 43fbbe7279
commit 6ef4c0ea3e

View file

@ -110,11 +110,11 @@ def parse_number(s: str) -> str:
return str(number)
def format_tokens(s: str, sigil: str="$"
) -> typing.List[typing.Tuple[int, str]]:
) -> typing.List[typing.Tuple[int, int, str]]:
i = 0
max = len(s)-1
sigil_found = False
tokens: typing.List[typing.Tuple[int, str]] = []
tokens: typing.List[typing.Tuple[int, int, str]] = []
while i < max:
if s[i] == sigil: