summaryrefslogtreecommitdiffstats
path: root/dumper.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dumper.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/dumper.py b/dumper.py
index e6457a6..ece9429 100644
--- a/dumper.py
+++ b/dumper.py
@@ -1,4 +1,5 @@
-# coding: utf-8
+
+from __future__ import annotations
from ruamel.yaml.emitter import Emitter
from ruamel.yaml.serializer import Serializer
@@ -10,8 +11,9 @@ from ruamel.yaml.representer import (
)
from ruamel.yaml.resolver import Resolver, BaseResolver, VersionedResolver
-from typing import Any, Dict, List, Union, Optional # NOQA
-from ruamel.yaml.compat import StreamType, VersionType # NOQA
+if False: # MYPY
+ from typing import Any, Dict, List, Union, Optional # NOQA
+ from ruamel.yaml.compat import StreamType, VersionType # NOQA
__all__ = ['BaseDumper', 'SafeDumper', 'Dumper', 'RoundTripDumper']