[Git][ghc/ghc][wip/testsuite-fixes] testsuite: Work around spurious mypy failure

Ben Gamari gitlab at gitlab.haskell.org
Wed May 27 19:14:40 UTC 2020



Ben Gamari pushed to branch wip/testsuite-fixes at Glasgow Haskell Compiler / GHC


Commits:
18255827 by Ben Gamari at 2020-05-27T15:14:30-04:00
testsuite: Work around spurious mypy failure

- - - - -


1 changed file:

- testsuite/driver/my_typing.py


Changes:

=====================================
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:



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/182558274d9d83ce972a306a645beebaa18fd5f8

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/182558274d9d83ce972a306a645beebaa18fd5f8
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200527/915d4e64/attachment.html>


More information about the ghc-commits mailing list