diff options
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/comments.py b/comments.py index 1aa6222..6f6d3ee 100644 --- a/comments.py +++ b/comments.py @@ -8,13 +8,16 @@ these are not really related, formatting could be factored out as a separate base """ -from typing import Any, Dict, Optional, List, Union # NOQA import copy from collections import MutableSet, Sized, Set from ruamel.yaml.compat import ordereddict, PY2 +import sys +if sys.version_info >= (3, 5, 2): + from typing import Any, Dict, Optional, List, Union # NOQA + __all__ = ["CommentedSeq", "CommentedKeySeq", "CommentedMap", "CommentedOrderedMap", "CommentedSet", 'comment_attrib', 'merge_attrib'] |