summaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-08-15 22:37:48 +0200
committerAnthon van der Neut <anthon@mnt.org>2019-08-15 22:37:48 +0200
commit909171f93bbad505d35f2856e0105f173858ea5f (patch)
tree2f60cc5be35af933c2c3267694e0a712cf29578b /tokens.py
parent1c628953c71f2e2f0cd01d643ca239e23c2e15cc (diff)
downloadruamel.yaml-909171f93bbad505d35f2856e0105f173858ea5f.tar.gz
mypy, split contruct_object0.16.3
fixes issue #306 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'tokens.py')
-rw-r--r--tokens.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tokens.py b/tokens.py
index 84c6847..5f5a663 100644
--- a/tokens.py
+++ b/tokens.py
@@ -272,6 +272,7 @@ class CommentToken(Token):
return 'CommentToken({})'.format(v)
def __eq__(self, other):
+ # type: (Any) -> bool
if self.start_mark != other.start_mark:
return False
if self.end_mark != other.end_mark:
@@ -281,4 +282,5 @@ class CommentToken(Token):
return True
def __ne__(self, other):
+ # type: (Any) -> bool
return not self.__eq__(other)