Debian Codegraph @

imageio/core/legacy_plugin_wrapper.pyi

raw symbols SCIP
1 import numpy as np
2 from typing import Optional, Dict, Any, Union, List, Iterator
3
4 from .request import Request
5 from .v3_plugin_api import PluginV3, ImageProperties
6 from .format import Format
7 from ..typing import ArrayLike
8
9 class LegacyPlugin(PluginV3):
10 def __init__(self, request: Request, legacy_plugin: Format) -> None: ...
11 def legacy_get_reader(self, **kwargs) -> Format.Reader: ...
12 def read(self, *, index: Optional[int] = 0, **kwargs) -> np.ndarray: ...
13 def legacy_get_writer(self, **kwargs) -> Format.Writer: ...
14 def write(
15 self,
16 ndimage: Union[ArrayLike, List[ArrayLike]],
17 *,
18 is_batch: bool = None,
19 **kwargs,
20 ) -> Optional[bytes]: ...
21 def iter(self, **kwargs) -> Iterator[np.ndarray]: ...
22 def properties(self, index: Optional[int] = 0) -> ImageProperties: ...
23 def get_meta(self, *, index: Optional[int] = 0) -> Dict[str, Any]: ...
24 def metadata(
25 self, index: Optional[int] = 0, exclude_applied: bool = True
26 ) -> Dict[str, Any]: ...
27 def __del__(self) -> None: ...