summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-06-27 18:20:21 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-06-27 18:20:21 +0200
commit874b482be60ed0e28afc6035e2b62859adeaeb1d (patch)
tree2d983a441755847f65a87c7064acb4cda2e6761e
parent023f16a23e1a70359c9e0f5adc29611d7c874917 (diff)
downloadruamel.yaml-874b482be60ed0e28afc6035e2b62859adeaeb1d.tar.gz
correct typing info on comment Token
fixes issue #136: reported by Manvendra Singh Please close this issue if you can confirm it solves the reported problem (this should be in > 0.15.15 when it comes out)
-rw-r--r--comments.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/comments.py b/comments.py
index 87b6629..d5a9d9d 100644
--- a/comments.py
+++ b/comments.py
@@ -239,7 +239,7 @@ class CommentedBase(object):
from ruamel.yaml.tokens import CommentToken
def comment_token(s, mark):
- # type: (Any) -> Any
+ # type: (Any, Any) -> Any
# handle empty lines as having no comment
return CommentToken(('# ' if s else '') + s + '\n', mark, None)