summaryrefslogtreecommitdiffstats
path: root/anchor.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--anchor.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/anchor.py b/anchor.py
index 1eb1480..61119af 100644
--- a/anchor.py
+++ b/anchor.py
@@ -1,6 +1,8 @@
-# coding: utf-8
-from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA
+from __future__ import annotations
+
+if False: # MYPY
+ from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA
anchor_attrib = '_yaml_anchor'