Skip to content

Commit acc5154

Browse files
authored
Update reportlab to 4.4.1 (#14073)
1 parent 337fd82 commit acc5154

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

stubs/reportlab/@tests/stubtest_allowlist.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ reportlab.rl_config.__all__
66
reportlab.graphics.barcode.eanbc.__all__
77
reportlab.graphics.barcode.ecc200datamatrix.__all__
88

9+
# shapeFragWord has two incompatible definitions, depending on whether
10+
# uharfbuzz is installed or not. We use the version where uharfbuzz is
11+
# installed.
12+
reportlab.pdfbase.ttfonts.shapeFragWord
13+
914
# Error: is inconsistent
1015
# ======================
1116
# The drawOn method violates LSP all over the place and it's usually

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.*"
1+
version = "~= 4.4.1"
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/graphics/charts/doughnut.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class Doughnut(AbstractPieChart):
2222
sideLabels: int
2323
innerRadiusFraction: Incomplete
2424
slices: Incomplete
25-
def __init__(self) -> None: ...
25+
angleRange: int
26+
def __init__(self, *, angleRange: int = 360, **kwds) -> None: ...
2627
def demo(self): ...
2728
def normalizeData(self, data: Incomplete | None = None): ...
2829
def makeSectors(self): ...

stubs/reportlab/reportlab/graphics/charts/piecharts.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class Pie(AbstractPieChart):
8080
sideLabels: int
8181
sideLabelsOffset: float
8282
slices: Incomplete
83-
def __init__(self, **kwd) -> None: ...
83+
angleRange: int
84+
def __init__(self, *, angleRange: int = 360, **kwds) -> None: ...
8485
def demo(self): ...
8586
centerx: Incomplete
8687
centery: Incomplete

stubs/reportlab/reportlab/pdfbase/ttfonts.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class ShapedStr(str):
180180
def __new__(cls, s, shapeData: ShapeData | None = None) -> Self: ...
181181
def __radd__(self, other) -> Self: ...
182182

183-
def shapeStr(s: str, fontName: str, fontSize: float): ...
183+
def shapeStr(s: str, fontName: str, fontSize: float, force: bool = False): ...
184184
def freshTTFont(ttfn, ttfpath, **kwds) -> TTFont: ...
185185
def makeShapedFragWord(w, K: list[Incomplete] = [], V: list[Incomplete] = []) -> type[ShapedFragWord]: ...
186-
def shapeFragWord(w, features: Incomplete | None = None): ...
186+
def shapeFragWord(w, features=..., force: bool = False): ...

0 commit comments

Comments
 (0)