Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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.1"
version = "~= 4.4.4"
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
upstream_repository = "https://github.com/MrBitBucket/reportlab-mirror"
Comment on lines 2 to 3
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh, I don't see a 4.4.4 tag on either of these repositories... but I see recent changes on both repos, so I guess these must be accurate


Expand Down
14 changes: 10 additions & 4 deletions stubs/reportlab/reportlab/graphics/charts/textlabels.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@ from _typeshed import Incomplete
from typing import Final

from reportlab.graphics.charts.utils import CustomDrawChanger
from reportlab.graphics.shapes import Drawing, Group
from reportlab.graphics.widgetbase import PropHolder, Widget
from reportlab.lib.attrmap import *

__version__: Final[str]

class Label(Widget):
def __init__(self, **kw) -> None: ...
def setText(self, text) -> None: ...
# TODO: This has more attributes.
x: Incomplete
y: Incomplete
def __init__(self, **kw) -> None: ...
@property
def padding(self): ...
@padding.setter
def padding(self, p) -> None: ...
def setText(self, text) -> None: ...
def setOrigin(self, x, y) -> None: ...
def demo(self): ...
def demo(self) -> Drawing: ...
def computeSize(self) -> None: ...
def draw(self): ...
def draw(self) -> Group: ...

class LabelDecorator:
textAnchor: str
Expand Down
5 changes: 2 additions & 3 deletions stubs/reportlab/reportlab/graphics/widgetbase.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ class PropHolder:
def dumpProperties(self, prefix: str = "") -> None: ...

class Widget(PropHolder, shapes.UserNode):
# TODO: draw should probably be marked abstract
def draw(self) -> None: ...
def demo(self) -> None: ...
def draw(self): ... # abstract, but not marked as @abstractmethod
def demo(self): ... # abstract, but not marked as @abstractmethod
def provideNode(self) -> shapes.Shape: ...
def getBounds(self) -> tuple[float, float, float, float]: ...

Expand Down
10 changes: 9 additions & 1 deletion stubs/reportlab/reportlab/platypus/tables.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from _typeshed import Incomplete
from abc import abstractmethod
from collections.abc import Collection, Iterable, Sequence
from typing import Any, Literal, overload
from typing import Any, Literal, NamedTuple, overload
from typing_extensions import TypeAlias, Unpack

from reportlab.lib.colors import Color
Expand Down Expand Up @@ -55,6 +55,13 @@ class TableStyle:
def add(self, *cmd: Unpack[_RoundedCornersTableCommand]) -> None: ...
def getCommands(self) -> list[_TableCommand]: ...

class ShadowStyle(NamedTuple):
dx: int = 10
dy: int = -10
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
color0: _Color = "grey"
color1: _Color = "white"
nshades: int = 30

class Table(Flowable):
ident: str | None
repeatRows: int
Expand Down Expand Up @@ -89,6 +96,7 @@ class Table(Flowable):
minRowHeights: Sequence[float] | None = None,
cornerRadii: _CornerRadii | _UNSET_ | None = ...,
renderCB: TableRenderCB | None = None,
shadow: ShadowStyle | None = None,
) -> None: ...
def identity(self, maxLen: int | None = 30) -> str: ...
def normalizeData(self, data: Iterable[Iterable[Any]]) -> list[list[Any]]: ...
Expand Down
Loading