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 /util.py | |
parent | f75754aa90ea4d53f87aba5fce692185a25514c3 (diff) | |
download | ruamel.yaml-c8568f99215aaa910953287f63a25459e3800dfc.tar.gz |
changes for mypy
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,6 +9,7 @@ from __future__ import absolute_import, print_function from typing import Any, Dict, Optional, List # NOQA from .compat import text_type, binary_type +from .compat import StreamTextType, StringIO # NOQA # originally as comment @@ -17,7 +18,7 @@ from .compat import text_type, binary_type # that check this routines output against a known piece of your YAML # before upgrades to this code break your round-tripped YAML def load_yaml_guess_indent(stream, **kw): - # type: (Any, Any) -> Any + # type: (StreamTextType, Any) -> Any """guess the indent and block sequence indent of yaml stream/string returns round_trip_loaded stream, indent level, block sequence indent |