diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-12-28 10:50:40 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-12-28 10:50:40 +0100 |
commit | 96cf5fdbbfec1902fcaeeb3ba6c75ccf92f1f2f7 (patch) | |
tree | 1f8f741f303b47ef8f3cc1b340c9af7d635d046d /compat.py | |
parent | 25b7008eb7721763fe0ea10cc23abeed2c1ef780 (diff) | |
download | ruamel.yaml-96cf5fdbbfec1902fcaeeb3ba6c75ccf92f1f2f7.tar.gz |
work around issue 6112 in mypy
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -117,7 +117,8 @@ else: if False: # MYPY # StreamType = Union[BinaryIO, IO[str], IO[unicode], StringIO] - StreamType = Union[BinaryIO, IO[str], StringIO] + # StreamType = Union[BinaryIO, IO[str], StringIO] # type: ignore + StreamType = Any StreamTextType = Union[Text, StreamType] VersionType = Union[List[int], str, Tuple[int, int]] @@ -257,7 +258,7 @@ def version_tnf(t1, t2=None): return False -class MutableSliceableSequence(MutableSequence): +class MutableSliceableSequence(MutableSequence): # type: ignore __slots__ = () def __getitem__(self, index): |