summaryrefslogtreecommitdiff
path: root/emitter.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 /emitter.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 'emitter.py')
-rw-r--r--emitter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/emitter.py b/emitter.py
index 1b6006f..02100dd 100644
--- a/emitter.py
+++ b/emitter.py
@@ -241,7 +241,7 @@ class Emitter(object):
def dispose(self):
# type: () -> None
# Reset the state attributes (to clear self-references)
- self.states = [] # type: List[Any]
+ self.states = []
self.state = None
def emit(self, event):
@@ -1591,7 +1591,7 @@ class Emitter(object):
self.stream.write(data)
start = end
elif breaks:
- if ch not in u'\n\x85\u2028\u2029':
+ if ch not in u'\n\x85\u2028\u2029': # type: ignore
if text[start] == u'\n':
self.write_line_break()
for br in text[start:end]: