diff options
author | Jochen Sprickerhof <mercurial@jochen.sprickerhof.de> | 2021-05-30 13:20:33 +0200 |
---|---|---|
committer | Jochen Sprickerhof <mercurial@jochen.sprickerhof.de> | 2021-05-30 13:20:33 +0200 |
commit | 35b81abf32f2567feba5957bc7c9d31782af3b1c (patch) | |
tree | 00fd9292a31f03cc347c6fd0a4877f43c6c5ee70 | |
parent | e31888070f57aa713b241f2c41bda2bbae2838a0 (diff) | |
download | ruamel.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.py | 2 | ||||
-rw-r--r-- | tokens.py | 2 |
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 @@ -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 |