diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-03-17 11:18:10 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-03-17 11:18:10 +0100 |
commit | c8568f99215aaa910953287f63a25459e3800dfc (patch) | |
tree | 8e26ef5382230e96184737d09913d1a5728bd670 /compat.py | |
parent | f75754aa90ea4d53f87aba5fce692185a25514c3 (diff) | |
download | ruamel.yaml-c8568f99215aaa910953287f63a25459e3800dfc.tar.gz |
changes for mypy
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8,7 +8,7 @@ import sys import os import types -from typing import Any, Dict, Optional, List, Union # NOQA +from typing import Any, Dict, Optional, List, Union, BinaryIO, IO, Text # NOQA try: @@ -94,6 +94,9 @@ else: import cStringIO BytesIO = cStringIO.StringIO +StreamType = Union[BinaryIO, IO[str], StringIO] +StreamTextType = Union[Text, StreamType] + if PY3: builtins_module = 'builtins' else: |