-
-
Save acdimalev/3b13cbe7900df6917273cc00689eaa28 to your computer and use it in GitHub Desktop.
coconut + mypy: error importing StringIO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ coconut error.coco -s | |
Compiling error.coco ... | |
Compiled to error.py . | |
$ coconut error.coco -s --mypy | |
Compiling error.coco ... | |
Compiled to error.py . | |
error.py:22: error: Incompatible import of "StringIO" (imported name has type "Type[StringIO]", local name has type "T | |
ype[StringIO[Any]]") | |
$ cat error.coco | |
from io import StringIO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment