Skip to content

Commit bcf2ccf

Browse files
authored
[reportlab] Update to 4.4.9 (#15290)
1 parent ba6dbf4 commit bcf2ccf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

stubs/reportlab/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "4.4.7"
1+
version = "4.4.9"
22
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
33
upstream_repository = "https://github.com/MrBitBucket/reportlab-mirror"
44

stubs/reportlab/reportlab/pdfgen/canvas.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from _typeshed import Incomplete
2+
from collections.abc import Callable
23
from typing import IO, Literal
34

45
from reportlab.lib.colors import Color, _ConvertibleToColor
@@ -267,5 +268,8 @@ class Canvas(_PDFColorSetter):
267268
@property
268269
def acroForm(self): ...
269270
def drawBoundary(self, sb, x1: float, y1: float, width: float, height: float) -> None: ...
271+
# Following callbacks are accepted: canvas, kind and label
272+
def setNamedCB(self, name: str, cb: Callable[[Canvas, str | None, str], None]) -> None: ...
273+
def getNamedCB(self, name: str) -> Callable[[Canvas, str | None, str], None] | None: ...
270274

271275
__all__ = ["Canvas", "ShowBoundaryValue"]

0 commit comments

Comments
 (0)