Skip to content

Commit 27383aa

Browse files
reportlab: add some types for canvas (#14152)
1 parent 32ee901 commit 27383aa

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

stubs/reportlab/reportlab/pdfgen/canvas.pyi

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,20 @@ class Canvas(_PDFColorSetter):
177177
fontSize: float = 3,
178178
) -> None: ...
179179
def grid(self, xlist, ylist) -> None: ...
180-
def bezier(self, x1, y1, x2, y2, x3, y3, x4, y4) -> None: ...
181-
def arc(self, x1, y1, x2, y2, startAng: int = 0, extent: int = 90) -> None: ...
182-
def rect(self, x, y, width, height, stroke: int = 1, fill: int = 0) -> None: ...
183-
def ellipse(self, x1, y1, x2, y2, stroke: int = 1, fill: int = 0) -> None: ...
184-
def wedge(self, x1, y1, x2, y2, startAng, extent, stroke: int = 1, fill: int = 0) -> None: ...
185-
def circle(self, x_cen, y_cen, r, stroke: int = 1, fill: int = 0) -> None: ...
186-
def roundRect(self, x, y, width, height, radius, stroke: int = 1, fill: int = 0) -> None: ...
180+
def bezier(self, x1: float, y1: float, x2: float, y2: float, x3: float, y3: float, x4: float, y4: float) -> None: ...
181+
def arc(self, x1: float, y1: float, x2: float, y2: float, startAng: float = 0, extent: float = 90) -> None: ...
182+
def rect(self, x: float, y: float, width: float, height: float, stroke: float = 1, fill: float = 0) -> None: ...
183+
def ellipse(self, x1: float, y1: float, x2: float, y2: float, stroke: float = 1, fill: float = 0) -> None: ...
184+
def wedge(
185+
self, x1: float, y1: float, x2: float, y2: float, startAng: float, extent: float, stroke: float = 1, fill: float = 0
186+
) -> None: ...
187+
def circle(self, x_cen: float, y_cen: float, r: float, stroke: float = 1, fill: float = 0) -> None: ...
188+
def roundRect(
189+
self, x: float, y: float, width: float, height: float, radius: float, stroke: float = 1, fill: float = 0
190+
) -> None: ...
187191
def shade(self, shading) -> None: ...
188-
def linearGradient(self, x0, y0, x1, y1, colors, positions=None, extend: bool = True) -> None: ...
189-
def radialGradient(self, x, y, radius, colors, positions=None, extend: bool = True) -> None: ...
192+
def linearGradient(self, x0: float, y0: float, x1: float, y1: float, colors, positions=None, extend: bool = True) -> None: ...
193+
def radialGradient(self, x: float, y: float, radius: float, colors, positions=None, extend: bool = True) -> None: ...
190194
def drawString(
191195
self,
192196
x: float,

0 commit comments

Comments
 (0)