summaryrefslogtreecommitdiff
path: root/representer.py
diff options
context:
space:
mode:
Diffstat (limited to 'representer.py')
-rw-r--r--representer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/representer.py b/representer.py
index 5e8ce51..464d505 100644
--- a/representer.py
+++ b/representer.py
@@ -2,7 +2,6 @@
from __future__ import print_function, absolute_import, division
-from typing import Dict, List, Any, Union, Text # NOQA
from ruamel.yaml.error import * # NOQA
from ruamel.yaml.nodes import * # NOQA
@@ -21,6 +20,9 @@ if PY3:
else:
import copy_reg as copyreg # type: ignore
+if sys.version_info >= (3, 5, 2):
+ from typing import Dict, List, Any, Union, Text # NOQA
+
__all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
'RepresenterError', 'RoundTripRepresenter']