summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-05 23:20:17 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-05 23:20:17 +0200
commitbfd63d6184e3a43cb63e0831467819bc44513d50 (patch)
tree9426b3c93cb1fd7849ea678424b6bbd900ff2d68 /compat.py
parent893db272efb6d7041e09aa09f04da2010ec92072 (diff)
downloadruamel.yaml-bfd63d6184e3a43cb63e0831467819bc44513d50.tar.gz
added context manager, mypy cleanup (w. Optional) added tests0.15.50
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat.py b/compat.py
index a962103..3eb6464 100644
--- a/compat.py
+++ b/compat.py
@@ -9,7 +9,7 @@ import os
import types
if False: # MYPY
- from typing import Any, Dict, Optional, List, Union, BinaryIO, IO, Text, Tuple # NOQA
+ from typing import Any, Dict, Optional, List, Union, BinaryIO, IO, Text, Tuple, Optional # NOQA
_DEFAULT_YAML_VERSION = (1, 2)
@@ -136,7 +136,7 @@ DBG_EVENT = 2
DBG_NODE = 4
-_debug = None # type: Union[None, int]
+_debug = None # type: Optional[int]
if 'RUAMELDEBUG' in os.environ:
_debugx = os.environ.get('RUAMELDEBUG')
if _debugx is None: