diff options
-rw-r--r-- | testsuite/driver/my_typing.py | 2 |
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: |