summaryrefslogtreecommitdiffstats
path: root/emitter.py
diff options
context:
space:
mode:
Diffstat (limited to 'emitter.py')
-rw-r--r--emitter.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/emitter.py b/emitter.py
index 1d58be2..9352a16 100644
--- a/emitter.py
+++ b/emitter.py
@@ -1,4 +1,5 @@
-# coding: utf-8
+
+from __future__ import annotations
# Emitter expects events obeying the following grammar:
# stream ::= STREAM-START document* STREAM-END
@@ -17,8 +18,9 @@ from ruamel.yaml.compat import nprint, dbg, DBG_EVENT, \
# fmt: on
-from typing import Any, Dict, List, Union, Text, Tuple, Optional # NOQA
-from ruamel.yaml.compat import StreamType # NOQA
+if False: # MYPY
+ from typing import Any, Dict, List, Union, Text, Tuple, Optional # NOQA
+ from ruamel.yaml.compat import StreamType # NOQA
__all__ = ['Emitter', 'EmitterError']