summaryrefslogtreecommitdiff
path: root/_test/lib
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-03-21 17:18:18 +0100
committerAnthon van der Neut <anthon@mnt.org>2017-03-21 17:18:18 +0100
commit9ac44a0873d51d63150b0f1dc1d009b206577a29 (patch)
tree44fc2ecbdba2a6a63544097d7b9f63d8f87d5aae /_test/lib
parentc8568f99215aaa910953287f63a25459e3800dfc (diff)
downloadruamel.yaml-9ac44a0873d51d63150b0f1dc1d009b206577a29.tar.gz
update for mypy --strict, prepare de-inheritance (Loader/Dumper)0.14.0
Diffstat (limited to '_test/lib')
-rw-r--r--_test/lib/test_emitter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/_test/lib/test_emitter.py b/_test/lib/test_emitter.py
index 1158854..7fff498 100644
--- a/_test/lib/test_emitter.py
+++ b/_test/lib/test_emitter.py
@@ -95,6 +95,9 @@ class EventsLoader(yaml.Loader):
value = getattr(yaml, class_name)(**mapping)
return value
+# if Loader is not a composite, add this function
+# EventsLoader.add_constructor = yaml.constructor.Constructor.add_constructor
+
EventsLoader.add_constructor(None, EventsLoader.construct_event)