Skip to content

Commit 3e1b90b

Browse files
authored
[reportlab] Update to 4.4.5 (#15056)
1 parent 526415a commit 3e1b90b

File tree

3 files changed

+29
-27
lines changed

3 files changed

+29
-27
lines changed

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.4"
1+
version = "4.4.5"
22
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
33
upstream_repository = "https://github.com/MrBitBucket/reportlab-mirror"
44

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
1+
import re
12
import unittest
2-
from _typeshed import Incomplete
3-
from configparser import ConfigParser
3+
from _typeshed import Incomplete, StrPath, Unused
4+
from configparser import ConfigParser, _SectionName
5+
from types import ModuleType
46
from typing import Final, Literal
57

68
__version__: Final[str]
79

8-
def haveRenderPM(): ...
9-
def isWritable(D): ...
10+
def invariantSeed(n: float | str | bytes | bytearray | None) -> None: ...
11+
def haveRenderPM() -> ModuleType | Literal[False]: ...
1012

11-
RL_HOME: Incomplete
12-
testsFolder: Incomplete
13-
14-
DEJAVUSANS: tuple[
15-
Literal["DejaVuSans"], Literal["DejaVuSans-Bold"], Literal["DejaVuSans-Oblique"], Literal["DejaVuSans-BoldOblique"]
16-
] = ...
13+
DEJAVUSANS: Final = ("DejaVuSans", "DejaVuSans-Bold", "DejaVuSans-Oblique", "DejaVuSans-BoldOblique")
1714

1815
def haveDejaVu() -> bool: ...
19-
def setOutDir(name): ...
20-
def mockUrlRead(name): ...
21-
def outputfile(fn): ...
16+
def isWritable(D: Unused) -> Literal[0, 1]: ...
17+
18+
RL_HOME: str | None
19+
testsFolder: str | None
20+
21+
def setOutDir(name: str) -> str: ...
22+
def mockUrlRead(name: str): ...
23+
def outputfile(fn: StrPath | None) -> str: ...
2224
def printLocation(depth: int = 1) -> None: ...
23-
def makeSuiteForClasses(*classes, testMethodPrefix=None): ...
24-
def getCVSEntries(folder, files: int = 1, folders: int = 0): ...
25+
def makeSuiteForClasses(*classes: type[unittest.TestCase], testMethodPrefix: str | None = None) -> unittest.TestSuite: ...
26+
def getCVSEntries(folder: StrPath, files: bool | Literal[1, 0] = 1, folders: bool | Literal[1, 0] = 0) -> list[str]: ...
2527

2628
class ExtConfigParser(ConfigParser):
27-
pat: Incomplete
28-
def getstringlist(self, section, option): ...
29+
pat: re.Pattern[str]
30+
def getstringlist(self, section: _SectionName, option: str): ...
2931

3032
class GlobDirectoryWalker:
3133
index: int
32-
pattern: Incomplete
33-
stack: Incomplete
34-
files: Incomplete
35-
directory: Incomplete
36-
def __init__(self, directory, pattern: str = "*") -> None: ...
37-
def __getitem__(self, index): ...
34+
pattern: str
35+
stack: list[str]
36+
files: list[str]
37+
directory: str
38+
def __init__(self, directory: str, pattern: str = "*") -> None: ...
39+
def __getitem__(self, index) -> str | None: ...
3840
def filterFiles(self, folder, files): ...
3941

4042
class RestrictedGlobDirectoryWalker(GlobDirectoryWalker):
@@ -64,9 +66,9 @@ class ScriptThatMakesFileTest(unittest.TestCase):
6466
def tearDown(self) -> None: ...
6567
def runTest(self) -> None: ...
6668

67-
def equalStrings(a, b, enc: str = "utf8"): ...
69+
def equalStrings(a: str | bytes, b: str | bytes, enc: str = "utf8") -> bool: ...
6870
def eqCheck(r, x) -> None: ...
69-
def rlextraNeeded(): ...
71+
def rlextraNeeded() -> bool: ...
7072
def rlSkipIf(cond, reason, __module__=None): ...
7173
def rlSkipUnless(cond, reason, __module__=None): ...
7274
def rlSkip(reason, __module__=None): ...

stubs/reportlab/reportlab/platypus/flowables.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class ListItem:
411411
# TODO: Use Unpack for kwds with the ListStyle properties + value/spaceBefore/spaceAfter
412412
def __init__(self, flowables: _FlowableSublist, style: PropertySet | None = None, **kwds) -> None: ...
413413

414-
class ListFlowable(_Container, Flowable):
414+
class ListFlowable(_Container, Flowable, _FindSplitterMixin):
415415
style: ListStyle
416416
# NOTE: style has to be a ListStyle, but this will be annoying with sheet["ul"]
417417
# TODO: Use Unpack for kwds with the ListStyle properties + spaceBefore/spaceAfter

0 commit comments

Comments
 (0)