diff options
Diffstat (limited to '')
-rw-r--r-- | serializer.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/serializer.py b/serializer.py index 1ac46d2..90f7c11 100644 --- a/serializer.py +++ b/serializer.py @@ -1,4 +1,5 @@ -# coding: utf-8 + +from __future__ import annotations from ruamel.yaml.error import YAMLError from ruamel.yaml.compat import nprint, DBG_NODE, dbg, nprintf # NOQA @@ -18,8 +19,9 @@ from ruamel.yaml.events import ( ) from ruamel.yaml.nodes import MappingNode, ScalarNode, SequenceNode -from typing import Any, Dict, Union, Text, Optional # NOQA -from ruamel.yaml.compat import VersionType # NOQA +if False: # MYPY + from typing import Any, Dict, Union, Text, Optional # NOQA + from ruamel.yaml.compat import VersionType # NOQA __all__ = ['Serializer', 'SerializerError'] |