diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-05 23:20:17 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-05 23:20:17 +0200 |
commit | bfd63d6184e3a43cb63e0831467819bc44513d50 (patch) | |
tree | 9426b3c93cb1fd7849ea678424b6bbd900ff2d68 /compat.py | |
parent | 893db272efb6d7041e09aa09f04da2010ec92072 (diff) | |
download | ruamel.yaml-bfd63d6184e3a43cb63e0831467819bc44513d50.tar.gz |
added context manager, mypy cleanup (w. Optional) added tests0.15.50
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |