summaryrefslogtreecommitdiffstats
path: root/tag.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 00:33:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 00:33:55 +0000
commitcbbc936ed9811bdb5dd480bc2c5e10c3062532be (patch)
treeec1783c0aaa2ee6eaa6d6362f2bed4392943de8e /tag.py
parentReleasing progress-linux version 0.18.5-1~exp1~progress7.99u1. (diff)
downloadruamel.yaml-cbbc936ed9811bdb5dd480bc2c5e10c3062532be.tar.xz
ruamel.yaml-cbbc936ed9811bdb5dd480bc2c5e10c3062532be.zip
Merging upstream version 0.18.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tag.py')
-rw-r--r--tag.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tag.py b/tag.py
index 7ad23fe..9a4cad9 100644
--- a/tag.py
+++ b/tag.py
@@ -1,4 +1,5 @@
-# coding: utf-8
+
+from __future__ import annotations
"""
In round-trip mode the original tag needs to be preserved, but the tag
@@ -10,7 +11,8 @@ A Tag that is created for dumping only (on an object loaded without a tag) has a
only.
"""
-from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA
+if False: # MYPY
+ from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA
tag_attrib = '_yaml_tag'