summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Sprickerhof <mercurial@jochen.sprickerhof.de>2021-05-30 13:20:33 +0200
committerJochen Sprickerhof <mercurial@jochen.sprickerhof.de>2021-05-30 13:20:33 +0200
commit35b81abf32f2567feba5957bc7c9d31782af3b1c (patch)
tree00fd9292a31f03cc347c6fd0a4877f43c6c5ee70
parente31888070f57aa713b241f2c41bda2bbae2838a0 (diff)
downloadruamel.yaml-35b81abf32f2567feba5957bc7c9d31782af3b1c.tar.gz
Fix type annotations
column was added in fd2ef3 but it seems unused so not sure about the type.
-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