Finish annotating template/css parsers and tests.

This commit is contained in:
Tim Abbott
2016-09-12 09:03:37 -07:00
parent e580ed579b
commit 1eb16d03a2
3 changed files with 8 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ class Token(object):
self.col = col
def tokenize(text):
# type: (str) -> List[Token]
def advance(n):
# type: (int) -> None
for _ in range(n):
@@ -119,7 +120,7 @@ def tokenize(text):
return tokens
def validate(fn=None, text=None, check_indent=True):
# type: (str, str, bool) -> None
# type: (Optional[str], Optional[str], bool) -> None
assert fn or text
if fn is None: