mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-08 22:36:18 +08:00
Bump qrcode to 8.2.* (#13918)
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user