summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-27 15:14:30 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-01 06:38:26 -0400
commit7002d0cbbe1581dd157b530e95c62195f37cfe00 (patch)
treee93348bee5a01b63b4c236cd086e7550f4921f26
parente45d5b667653f4c3ffc89fe7a83eac56d60b9364 (diff)
downloadhaskell-7002d0cbbe1581dd157b530e95c62195f37cfe00.tar.gz
testsuite: Work around spurious mypy failure
-rw-r--r--testsuite/driver/my_typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/my_typing.py b/testsuite/driver/my_typing.py
index d3ca415f85..1bc5e6d578 100644
--- a/testsuite/driver/my_typing.py
+++ b/testsuite/driver/my_typing.py
@@ -26,7 +26,7 @@ except:
# TextIO is missing on some older Pythons.
if 'TextIO' not in globals():
try:
- TextIO = typing.TextIO
+ from typing import TextIO
except ImportError:
TextIO = None # type: ignore
else: