Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add stub for _image #30058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions lib/matplotlib/_image.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import numpy

BESSEL: _InterpolationType
BICUBIC: _InterpolationType
BILINEAR: _InterpolationType
BLACKMAN: _InterpolationType
CATROM: _InterpolationType
GAUSSIAN: _InterpolationType
HAMMING: _InterpolationType
HANNING: _InterpolationType
HERMITE: _InterpolationType
KAISER: _InterpolationType
LANCZOS: _InterpolationType
MITCHELL: _InterpolationType
NEAREST: _InterpolationType
QUADRIC: _InterpolationType
SINC: _InterpolationType
SPLINE16: _InterpolationType
SPLINE36: _InterpolationType

class _InterpolationType:
def __init__(self, value: int) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __int__(self) -> int: ...
def __ne__(self, other: object) -> bool: ...
@property
def name(self) -> str: ...
@property
def value(self) -> int: ...

def resample(input_array: numpy.ndarray, output_array: numpy.ndarray, transform: object, interpolation: _InterpolationType = ..., resample: bool = ..., alpha: float = ..., norm: bool = ..., radius: float = ...) -> None: ...
Loading