Skip to content
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
10 changes: 10 additions & 0 deletions stubs/Pillow/PIL/Image.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from _typeshed import Self, SupportsRead, SupportsWrite
from collections.abc import Callable, Iterable, Iterator, MutableMapping, Sequence
from enum import IntEnum
from pathlib import Path
from typing import Any, ClassVar, Protocol, SupportsBytes, Union
from typing_extensions import Literal, TypeAlias
Expand Down Expand Up @@ -56,6 +57,15 @@ PERSPECTIVE: Literal[2]
QUAD: Literal[3]
MESH: Literal[4]

class Resampling(IntEnum):
NEAREST: Literal[0]
BOX: Literal[4]
BILINEAR: Literal[2]
HAMMING: Literal[5]
BICUBIC: Literal[3]
LANCZOS: Literal[1]

# deprecated, removed in Pillow 10
NEAREST: Literal[0]
BOX: Literal[4]
BILINEAR: Literal[2]
Expand Down