Mercurial > code > home > repos > light9
changeset 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 | 947b8267652e |
children | 19c2e6216cf8 |
files | stubs/PIL/Image.pyi stubs/PIL/__init__.pyi stubs/moviepy/__init__.pyi stubs/moviepy/config.pyi stubs/moviepy/editor.pyi stubs/moviepy/tools.pyi stubs/moviepy/video/VideoClip.pyi stubs/moviepy/video/io/html_tools.pyi stubs/numpy/__init__.pyi |
diffstat | 9 files changed, 17 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/stubs/PIL/Image.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/PIL/Image.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -2,7 +2,6 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -import __builtin__ from typing import Any, Optional logger: Any @@ -13,7 +12,6 @@ def __getattr__(self, id: Any) -> None: ... MAX_IMAGE_PIXELS: Any -builtins = __builtin__ USE_CFFI_ACCESS: Any HAS_CFFI: bool
--- 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): ...
--- a/stubs/moviepy/__init__.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/moviepy/__init__.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -1,5 +1,5 @@ # Stubs for moviepy (Python 3) # -# NOTE: This dynamically typed stub was automatically generated by stubgen. + -from .version import __version__ +
--- a/stubs/moviepy/config.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/moviepy/config.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -2,7 +2,7 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .compat import DEVNULL + from .config_defaults import FFMPEG_BINARY, IMAGEMAGICK_BINARY from typing import Any, Optional
--- a/stubs/moviepy/editor.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/moviepy/editor.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -5,11 +5,14 @@ from .audio.AudioClip import AudioClip, CompositeAudioClip, concatenate_audioclips from .audio.io.AudioFileClip import AudioFileClip from .tools import cvsecs -from .video.VideoClip import ColorClip, ImageClip, TextClip, VideoClip +from .video.VideoClip import ColorClip, ImageClip, TextClip from .video.compositing.CompositeVideoClip import CompositeVideoClip, clips_array from .video.compositing.concatenate import concatenate, concatenate_videoclips from .video.io.ImageSequenceClip import ImageSequenceClip from .video.io.VideoFileClip import VideoFileClip from .video.io.downloader import download_webfile -from .video.io.html_tools import ipython_display -from .video.io.sliders import sliders + +class VideoClip: + def __init__(self, make_frame, duration) -> None: ... + fps: float + def write_videofile(self, path: str, **kw): ...
--- a/stubs/moviepy/tools.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/moviepy/tools.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -1,8 +1,6 @@ # Stubs for moviepy.tools (Python 3) # -# NOTE: This dynamically typed stub was automatically generated by stubgen. -from .compat import DEVNULL from typing import Any, Optional def sys_write_flush(s: Any) -> None: ...
--- a/stubs/moviepy/video/VideoClip.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/moviepy/video/VideoClip.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -3,7 +3,6 @@ # NOTE: This dynamically typed stub was automatically generated by stubgen. from ..Clip import Clip -from ..compat import DEVNULL, string_types from ..config import get_setting from ..decorators import add_mask_if_none, apply_to_mask, convert_masks_to_RGB, convert_to_seconds, outplace, requires_duration, use_clip_fps_by_default from ..tools import deprecated_version_of, extensions_dict, find_extension, is_string, subprocess_call
--- a/stubs/moviepy/video/io/html_tools.pyi Thu Jun 06 00:05:50 2019 +0000 +++ b/stubs/moviepy/video/io/html_tools.pyi Thu Jun 06 00:06:00 2019 +0000 @@ -1,19 +1,7 @@ # Stubs for moviepy.video.io.html_tools (Python 3) # -# NOTE: This dynamically typed stub was automatically generated by stubgen. + from ..VideoClip import ImageClip, VideoClip from .ffmpeg_reader import ffmpeg_parse_infos -from IPython.display import HTML from typing import Any, Optional - -ipython_available: bool - -class HTML2(HTML): - def __add__(self, other: Any): ... - -sorry: str -templates: Any - -def html_embed(clip: Any, filetype: Optional[Any] = ..., maxduration: int = ..., rd_kwargs: Optional[Any] = ..., center: bool = ..., **html_kwargs: Any): ... -def ipython_display(clip: Any, filetype: Optional[Any] = ..., maxduration: int = ..., t: Optional[Any] = ..., fps: Optional[Any] = ..., rd_kwargs: Optional[Any] = ..., center: bool = ..., **html_kwargs: Any): ...