Skip to content

Commit 6083bca

Browse files
authored
Bump qrcode to 8.2.* (#13918)
1 parent 8eb2a96 commit 6083bca

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

stubs/qrcode/METADATA.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "8.1.*"
1+
version = "8.2.*"
22
upstream_repository = "https://github.com/lincolnloop/python-qrcode"
33
# must be a version of Pillow that is py.typed
44
requires = ["Pillow>=10.3.0"]

stubs/qrcode/qrcode/image/styledpil.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class StyledPilImage(base.BaseImageWithDrawer):
3939
# the new_image method accepts arbitrary keyword arguments to accommodate
4040
# subclasses with additional arguments.
4141
def new_image(self, **kwargs: Any) -> Image.Image: ...
42-
def draw_embeded_image(self) -> None: ...
42+
def draw_embedded_image(self) -> None: ...
4343
# kwargs are passed on to PIL.Image.save, which also accepts arbitrary keyword arguments.
4444
def save( # type: ignore[override]
4545
self,

stubs/qrcode/qrcode/image/styles/colormasks.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class QRColorMask:
1212
paint_color: Ink
1313
# image is not actually used by any of the initialize implementations in this project.
1414
def initialize(self, styledPilImage: StyledPilImage, image: Image.Image) -> None: ...
15-
def apply_mask(self, image: Image.Image) -> None: ...
15+
def apply_mask(self, image: Image.Image, use_cache: bool = False) -> None: ...
1616
def get_fg_pixel(self, image: Image.Image, x: int, y: int) -> Ink: ...
1717
def get_bg_pixel(self, image: Image.Image, x: int, y: int) -> Ink: ...
1818
def interp_num(self, n1: int, n2: int, norm: float) -> int: ...
@@ -23,6 +23,7 @@ class QRColorMask:
2323
class SolidFillColorMask(QRColorMask):
2424
front_color: Ink
2525
def __init__(self, back_color: Ink = (255, 255, 255), front_color: Ink = (0, 0, 0)) -> None: ...
26+
def apply_mask(self, image: Image.Image) -> None: ... # type: ignore[override]
2627

2728
class RadialGradiantColorMask(QRColorMask):
2829
center_color: Ink

0 commit comments

Comments
 (0)