From 6083bca762bbbd00de2953590c2df0eb04e23747 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Mon, 5 May 2025 18:15:03 +0400 Subject: [PATCH] Bump qrcode to 8.2.* (#13918) --- stubs/qrcode/METADATA.toml | 2 +- stubs/qrcode/qrcode/image/styledpil.pyi | 2 +- stubs/qrcode/qrcode/image/styles/colormasks.pyi | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stubs/qrcode/METADATA.toml b/stubs/qrcode/METADATA.toml index 152711e7a..d08ef719f 100644 --- a/stubs/qrcode/METADATA.toml +++ b/stubs/qrcode/METADATA.toml @@ -1,4 +1,4 @@ -version = "8.1.*" +version = "8.2.*" upstream_repository = "https://github.com/lincolnloop/python-qrcode" # must be a version of Pillow that is py.typed requires = ["Pillow>=10.3.0"] diff --git a/stubs/qrcode/qrcode/image/styledpil.pyi b/stubs/qrcode/qrcode/image/styledpil.pyi index 655b57b75..c8e284633 100644 --- a/stubs/qrcode/qrcode/image/styledpil.pyi +++ b/stubs/qrcode/qrcode/image/styledpil.pyi @@ -39,7 +39,7 @@ class StyledPilImage(base.BaseImageWithDrawer): # the new_image method accepts arbitrary keyword arguments to accommodate # subclasses with additional arguments. def new_image(self, **kwargs: Any) -> Image.Image: ... - def draw_embeded_image(self) -> None: ... + def draw_embedded_image(self) -> None: ... # kwargs are passed on to PIL.Image.save, which also accepts arbitrary keyword arguments. def save( # type: ignore[override] self, diff --git a/stubs/qrcode/qrcode/image/styles/colormasks.pyi b/stubs/qrcode/qrcode/image/styles/colormasks.pyi index 8fdd08621..4c66dd25e 100644 --- a/stubs/qrcode/qrcode/image/styles/colormasks.pyi +++ b/stubs/qrcode/qrcode/image/styles/colormasks.pyi @@ -12,7 +12,7 @@ class QRColorMask: paint_color: Ink # image is not actually used by any of the initialize implementations in this project. def initialize(self, styledPilImage: StyledPilImage, image: Image.Image) -> None: ... - def apply_mask(self, image: Image.Image) -> None: ... + def apply_mask(self, image: Image.Image, use_cache: bool = False) -> None: ... def get_fg_pixel(self, image: Image.Image, x: int, y: int) -> Ink: ... def get_bg_pixel(self, image: Image.Image, x: int, y: int) -> Ink: ... def interp_num(self, n1: int, n2: int, norm: float) -> int: ... @@ -23,6 +23,7 @@ class QRColorMask: class SolidFillColorMask(QRColorMask): front_color: Ink def __init__(self, back_color: Ink = (255, 255, 255), front_color: Ink = (0, 0, 0)) -> None: ... + def apply_mask(self, image: Image.Image) -> None: ... # type: ignore[override] class RadialGradiantColorMask(QRColorMask): center_color: Ink