From 6f5a1b1f1e982f5738e3036efd445e07699798e7 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 30 May 2025 18:29:06 +0200 Subject: [PATCH] [reportlab] Add # type: ignores Helps with #14194 --- stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi | 8 ++++---- stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi b/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi index 9eacc232c39e..f4798830790e 100644 --- a/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi +++ b/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi @@ -46,10 +46,10 @@ class DataMatrix(Barcode, _DMTXCheck): def recalc(self) -> None: ... @property def matrix(self): ... - @property # type: ignore[misc] - def width(self): ... - @property # type: ignore[misc] - def height(self): ... + @property # type: ignore[misc] # TODO: for mypy < 1.16 + def width(self): ... # type: ignore[override] + @property # type: ignore[misc] # TODO: for mypy < 1.16 + def height(self): ... # type: ignore[override] @property def cellWidth(self): ... @property diff --git a/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi b/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi index 4bc3d09551c3..18b4045e005f 100644 --- a/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi +++ b/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi @@ -22,7 +22,7 @@ class Ean13BarcodeWidget(PlotArea): value: Incomplete def __init__(self, value: str = "123456789012", **kw) -> None: ... @property - def width(self): ... + def width(self): ... # type: ignore[override] def wrap(self, aW, aH): ... def draw(self): ...