summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-12-28 10:50:40 +0100
committerAnthon van der Neut <anthon@mnt.org>2018-12-28 10:50:40 +0100
commit96cf5fdbbfec1902fcaeeb3ba6c75ccf92f1f2f7 (patch)
tree1f8f741f303b47ef8f3cc1b340c9af7d635d046d /compat.py
parent25b7008eb7721763fe0ea10cc23abeed2c1ef780 (diff)
downloadruamel.yaml-96cf5fdbbfec1902fcaeeb3ba6c75ccf92f1f2f7.tar.gz
work around issue 6112 in mypy
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat.py b/compat.py
index 1786153..7355470 100644
--- a/compat.py
+++ b/compat.py
@@ -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):