summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comments.py2
-rw-r--r--tokens.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/comments.py b/comments.py
index d429fe1..252a450 100644
--- a/comments.py
+++ b/comments.py
@@ -90,7 +90,7 @@ class Comment:
attrib = comment_attrib
def __init__(self, old=True):
- # type: () -> None
+ # type: (Bool) -> None
self._pre = None if old else []
self.comment = None # [post, [pre]]
# map key (mapping/omap/dict) or index (sequence/list) to a list of
diff --git a/tokens.py b/tokens.py
index 84c90cc..202cbe2 100644
--- a/tokens.py
+++ b/tokens.py
@@ -346,7 +346,7 @@ class CommentToken(Token):
id = '<comment>'
def __init__(self, value, start_mark=None, end_mark=None, column=None):
- # type: (Any, Any, Any) -> None
+ # type: (Any, Any, Any, Any) -> None
if start_mark is None:
assert column is not None
self._column = column