Skip to content

Bump qrcode to 8.2.* #13918

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

Merged
merged 1 commit into from
May 5, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion stubs/qrcode/METADATA.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion stubs/qrcode/qrcode/image/styledpil.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion stubs/qrcode/qrcode/image/styles/colormasks.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand All @@ -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
Expand Down