Mercurial > code > home > repos > light9
diff stubs/PIL/__init__.pyi @ 1949:88ca10c9e31a
hack up stubs to pass mypy. they're very weak right now
Ignore-this: f4c854346bc206725a1065079d8d158f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 06 Jun 2019 00:06:00 +0000 |
parents | 3b2255e3576d |
children |
line wrap: on
line diff
--- a/stubs/PIL/__init__.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/PIL/__init__.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -1,6 +1,8 @@ # Stubs for PIL (Python 3) # -# NOTE: This dynamically typed stub was automatically generated by stubgen. -VERSION: str -PILLOW_VERSION: str +class Image: + @classmethod + def open(cls) -> Image: ... + @classmethod + def frombytes(cls, mode, size, data): ...