summaryrefslogtreecommitdiffstats
path: root/main.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 /main.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 'main.py')
-rw-r--r--main.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.py b/main.py
index b80c1f5..acef4bd 100644
--- a/main.py
+++ b/main.py
@@ -1,4 +1,3 @@
-# coding: utf-8
from __future__ import annotations
@@ -36,10 +35,11 @@ from ruamel.yaml.loader import Loader as UnsafeLoader # NOQA
from ruamel.yaml.comments import CommentedMap, CommentedSeq, C_PRE
from ruamel.yaml.docinfo import DocInfo, version, Version
-from typing import List, Set, Dict, Tuple, Union, Any, Callable, Optional, Text, Type # NOQA
-from types import TracebackType
-from ruamel.yaml.compat import StreamType, StreamTextType, VersionType # NOQA
-from pathlib import Path # NOQA
+if False: # MYPY
+ from typing import List, Set, Dict, Tuple, Union, Any, Callable, Optional, Text, Type # NOQA
+ from ruamel.yaml.compat import StreamType, StreamTextType, VersionType # NOQA
+ from types import TracebackType
+ from pathlib import Path
try:
from _ruamel_yaml import CParser, CEmitter # type: ignore