Skip to content

Instantly share code, notes, and snippets.

@acdimalev
Created December 5, 2017 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acdimalev/3b13cbe7900df6917273cc00689eaa28 to your computer and use it in GitHub Desktop.
Save acdimalev/3b13cbe7900df6917273cc00689eaa28 to your computer and use it in GitHub Desktop.
coconut + mypy: error importing StringIO
$ 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