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) return str(number)
def format_tokens(s: str, sigil: str="$" def format_tokens(s: str, sigil: str="$"
) -> typing.List[typing.Tuple[int, str]]: ) -> typing.List[typing.Tuple[int, int, str]]:
i = 0 i = 0
max = len(s)-1 max = len(s)-1
sigil_found = False sigil_found = False
tokens: typing.List[typing.Tuple[int, str]] = [] tokens: typing.List[typing.Tuple[int, int, str]] = []
while i < max: while i < max:
if s[i] == sigil: if s[i] == sigil: