From 01dd905339efb8a0e80973e7c65ccbcfa7befb09 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Fri, 16 May 2025 10:44:03 +0200 Subject: [PATCH] Add stub for _image --- lib/matplotlib/_image.pyi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lib/matplotlib/_image.pyi b/lib/matplotlib/_image.pyi index e69de29bb2d1..4f04d2007fd2 100644 --- a/lib/matplotlib/_image.pyi +++ b/lib/matplotlib/_image.pyi @@ -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: ...