From 7002d0cbbe1581dd157b530e95c62195f37cfe00 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 27 May 2020 15:14:30 -0400 Subject: testsuite: Work around spurious mypy failure --- testsuite/driver/my_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1