Skip to content
Open
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/reportlab/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "4.4.10"
version = "4.5.0"
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
upstream-repository = "https://github.com/MrBitBucket/reportlab-mirror"

Expand Down
2 changes: 2 additions & 0 deletions stubs/reportlab/reportlab/graphics/transform.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def rotate(angle: float, cx: float = 0, cy: float = 0): ...
def skewX(angle: float): ...
def skewY(angle: float): ...
def mmult(A, B): ...
def combineTransforms(*T): ...
def inverse(A): ...
def zTransformPoint(A, v): ...
def transformPoint(A, v): ...
Expand All @@ -19,6 +20,7 @@ __all__ = (
"skewX",
"skewY",
"mmult",
"combineTransforms",
"inverse",
"zTransformPoint",
"transformPoint",
Expand Down
3 changes: 2 additions & 1 deletion stubs/reportlab/reportlab/lib/colors.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ def hue2rgb(m1: float, m2: float, h: float) -> float: ...
def hsl2rgb(h: float, s: float, l: float) -> tuple[float, float, float]: ...
@type_check_only
class _cssParse:
def pcVal(self, v: str) -> float: ...
def pcVal(self, v: str, n: str = "argument") -> float: ...
def rgbPcVal(self, v: str) -> float: ...
def rgbVal(self, v: str) -> float: ...
def floatVal(self, v: str) -> float: ...
def hueVal(self, v: str) -> float: ...
def alphaVal(self, v: str, c: float = 1, n: str = "alpha") -> float: ...
s: str
Expand Down
93 changes: 49 additions & 44 deletions stubs/reportlab/reportlab/pdfbase/acroform.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from _typeshed import Incomplete
from weakref import ReferenceType

from reportlab.lib.colors import Color
from reportlab.pdfbase.pdfdoc import PDFDictionary, PDFObject, PDFStream

__all__ = ("AcroForm",)
Expand Down Expand Up @@ -36,6 +37,8 @@ class AcroForm(PDFObject):
extras: dict[Incomplete, Incomplete]
def __init__(self, canv, **kwds) -> None: ...
@property
def useDefault(self) -> object: ...
@property
def canv(self) -> ReferenceType[Incomplete]: ...
def fontRef(self, f) -> str: ...
def format(self, doc) -> bytes: ...
Expand All @@ -51,7 +54,7 @@ class AcroForm(PDFObject):
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
borderWidth: int | None = None,
borderStyle: str = "solid",
size: int = 20,
dashLen: int = 3,
Expand All @@ -61,8 +64,10 @@ class AcroForm(PDFObject):
def zdMark(self, c, size, ds, iFontName) -> str: ...
def getRef(self, obj): ...
def getRefStr(self, obj) -> str: ...
@staticmethod
def stdColors(t, b, f) -> tuple[Incomplete, Incomplete, Incomplete]: ...
def setDefault(self, name: str, value: Color | float | None) -> None: ...
def getDefaults(
self, textColor, borderColor, fillColor, borderWidth
) -> tuple[Incomplete, Incomplete, Incomplete, Incomplete]: ...
@staticmethod
def varyColors(key, t, b, f) -> tuple[Incomplete, Incomplete, Incomplete]: ...
def checkForceBorder(
Expand All @@ -73,10 +78,10 @@ class AcroForm(PDFObject):
checked: bool = False,
buttonStyle: str = "check",
shape: str = "square",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
size: int = 20,
x: int = 0,
Expand All @@ -95,10 +100,10 @@ class AcroForm(PDFObject):
selected: bool = False,
buttonStyle: str = "circle",
shape: str = "circle",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
size: int = 20,
x: int = 0,
Expand All @@ -123,7 +128,7 @@ class AcroForm(PDFObject):
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
borderWidth: int | None = None,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand All @@ -138,10 +143,10 @@ class AcroForm(PDFObject):
def textfield(
self,
value: str = "",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand All @@ -161,10 +166,10 @@ class AcroForm(PDFObject):
def listbox(
self,
value: str = "",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand All @@ -185,10 +190,10 @@ class AcroForm(PDFObject):
def choice(
self,
value: str = "",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand All @@ -212,10 +217,10 @@ class AcroForm(PDFObject):
checked: bool = False,
buttonStyle: str = "check",
shape: str = "square",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
size: int = 20,
x: int = 0,
Expand All @@ -234,10 +239,10 @@ class AcroForm(PDFObject):
selected: bool = False,
buttonStyle: str = "circle",
shape: str = "circle",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
size: int = 20,
x: int = 0,
Expand All @@ -253,10 +258,10 @@ class AcroForm(PDFObject):
self,
*,
value: str = "",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand All @@ -276,10 +281,10 @@ class AcroForm(PDFObject):
self,
*,
value: str = "",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand All @@ -299,10 +304,10 @@ class AcroForm(PDFObject):
self,
*,
value: str = "",
fillColor=None,
borderColor=None,
textColor=None,
borderWidth: int = 1,
fillColor=...,
borderColor=...,
textColor=...,
borderWidth: int = ...,
borderStyle: str = "solid",
width: int = 120,
height: int = 36,
Expand Down