summaryrefslogtreecommitdiffstats
path: root/scalarbool.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scalarbool.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scalarbool.py b/scalarbool.py
index 083d3cb..c38dd6b 100644
--- a/scalarbool.py
+++ b/scalarbool.py
@@ -1,4 +1,5 @@
-# coding: utf-8
+
+from __future__ import annotations
"""
You cannot subclass bool, and this is necessary for round-tripping anchored
@@ -11,7 +12,8 @@ You can use these in an if statement, but not when testing equivalence
from ruamel.yaml.anchor import Anchor
-from typing import Text, Any, Dict, List # NOQA
+if False: # MYPY
+ from typing import Text, Any, Dict, List # NOQA
__all__ = ['ScalarBoolean']