mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-23 17:28:38 +08:00
Bump reportlab to 4.3.1 (#13510)
This commit is contained in:
@@ -143,3 +143,6 @@ reportlab.graphics.utils.processGlyph
|
||||
reportlab.graphics.testdrawings
|
||||
reportlab.graphics.testshapes
|
||||
reportlab.graphics.barcode.test
|
||||
|
||||
# named tuple docstring
|
||||
reportlab.pdfbase.ttfonts.ShapeData.__doc__
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version = "4.2.5"
|
||||
version = "4.3.1"
|
||||
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
|
||||
upstream_repository = "https://github.com/MrBitBucket/reportlab-mirror"
|
||||
|
||||
|
||||
@@ -72,6 +72,8 @@ class PMCanvas:
|
||||
def setLineJoin(self, join) -> None: ...
|
||||
strokeWidth: Incomplete
|
||||
def setLineWidth(self, width) -> None: ...
|
||||
def stringWidth(self, text, fontName: Incomplete | None = None, fontSize: Incomplete | None = None): ...
|
||||
def shapedText(self, text) -> tuple[Incomplete, Incomplete]: ...
|
||||
|
||||
def drawToPMCanvas(
|
||||
d: Drawing,
|
||||
|
||||
@@ -25,7 +25,7 @@ class Renderer:
|
||||
def drawNode(self, node) -> None: ...
|
||||
def getStateValue(self, key): ...
|
||||
def fillDerivedValues(self, node) -> None: ...
|
||||
def drawNodeDispatcher(self, node) -> None: ...
|
||||
def drawNodeDispatcher(self, anode) -> None: ...
|
||||
def drawGroup(self, group) -> None: ...
|
||||
def drawWedge(self, wedge) -> None: ...
|
||||
def drawPath(self, path) -> None: ...
|
||||
|
||||
@@ -125,11 +125,11 @@ class Group(Shape):
|
||||
def insert(self, i: int, n: Shape | UserNode, name: str | None = None) -> None: ...
|
||||
def expandUserNodes(self) -> Group: ...
|
||||
def copy(self) -> Self: ...
|
||||
def rotate(self, theta: float) -> None: ...
|
||||
def translate(self, dx: float, dy: float) -> None: ...
|
||||
def scale(self, sx: float, sy: float) -> None: ...
|
||||
def skew(self, kx: float, ky: float) -> None: ...
|
||||
def shift(self, x: float, y: float) -> None: ...
|
||||
def rotate(self, theta: float, cx: float = 0, cy: float = 0) -> None: ...
|
||||
def translate(self, dx: float, dy: float = 0) -> None: ...
|
||||
def scale(self, sx: float, sy: float = 1) -> None: ...
|
||||
def skew(self, kx: float, ky: float = 0) -> None: ...
|
||||
def shift(self, x: float, y: float = 0) -> None: ...
|
||||
# NOTE: This changes the object to a Drawing, rather than returning
|
||||
# a new one, which is not ideal...
|
||||
def asDrawing(self, width: float, height: float) -> None: ...
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
def nullTransform(): ...
|
||||
def translate(dx, dy): ...
|
||||
def scale(sx, sy): ...
|
||||
def rotate(angle): ...
|
||||
def skewX(angle): ...
|
||||
def skewY(angle): ...
|
||||
def translate(dx: float, dy: float = 0): ...
|
||||
def scale(sx: float, sy: float = 1): ...
|
||||
def rotate(angle: float, cx: float = 0, cy: float = 0): ...
|
||||
def skewX(angle: float): ...
|
||||
def skewY(angle: float): ...
|
||||
def mmult(A, B): ...
|
||||
def inverse(A): ...
|
||||
def zTransformPoint(A, v): ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
def fp_str(*a): ...
|
||||
def unicode2T1(utext, fonts): ...
|
||||
def instanceStringWidthT1(self, text, size, encoding: str = "utf8"): ...
|
||||
def instanceStringWidthTTF(self, text, size, encoding: str = "utf-8"): ...
|
||||
def instanceStringWidthTTF(self, text, size, encoding: str = "utf8"): ...
|
||||
def hex32(i): ...
|
||||
def add32(x, y): ...
|
||||
def calcChecksum(data): ...
|
||||
|
||||
@@ -10,7 +10,6 @@ eval_debug: int
|
||||
strTypes: tuple[type[bytes], type[str]]
|
||||
isPy39: bool
|
||||
isPy313: bool
|
||||
haveNameConstant: bool
|
||||
|
||||
class BadCode(ValueError): ...
|
||||
|
||||
@@ -33,7 +32,6 @@ class UntrustedAstTransformer(ast.NodeTransformer):
|
||||
def gen_unpack_spec(self, tpl): ...
|
||||
def protect_unpack_sequence(self, target, value): ...
|
||||
def gen_unpack_wrapper(self, node, target, ctx: str = "store"): ...
|
||||
def gen_none_node(self): ...
|
||||
def gen_lambda(self, args, body): ...
|
||||
def gen_del_stmt(self, name_to_del): ...
|
||||
def transform_slice(self, slice_): ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import unittest
|
||||
from _typeshed import Incomplete
|
||||
from configparser import ConfigParser
|
||||
from typing import Final
|
||||
from typing import Final, Literal
|
||||
|
||||
__version__: Final[str]
|
||||
|
||||
@@ -11,6 +11,11 @@ def isWritable(D): ...
|
||||
RL_HOME: Incomplete
|
||||
testsFolder: Incomplete
|
||||
|
||||
DEJAVUSANS: tuple[
|
||||
Literal["DejaVuSans"], Literal["DejaVuSans-Bold"], Literal["DejaVuSans-Oblique"], Literal["DejaVuSans-BoldOblique"]
|
||||
] = ...
|
||||
|
||||
def haveDejaVu() -> bool: ...
|
||||
def setOutDir(name): ...
|
||||
def mockUrlRead(name): ...
|
||||
def outputfile(fn): ...
|
||||
|
||||
@@ -51,6 +51,7 @@ class Font:
|
||||
encoding: Incomplete
|
||||
encName: Incomplete
|
||||
substitutionFonts: Incomplete
|
||||
isShaped: bool
|
||||
def __init__(self, name, faceName, encName, substitutionFonts: Incomplete | None = None) -> None: ...
|
||||
def stringWidth(self, text, size, encoding: str = "utf8"): ...
|
||||
def addObjects(self, doc) -> None: ...
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final, NamedTuple
|
||||
from typing_extensions import Self
|
||||
|
||||
from reportlab.pdfbase import pdfdoc, pdfmetrics
|
||||
|
||||
@@ -142,9 +143,42 @@ class TTFont:
|
||||
encoding: Incomplete
|
||||
state: Incomplete
|
||||
def __init__(
|
||||
self, name, filename, validate: int = 0, subfontIndex: int = 0, asciiReadable: Incomplete | None = None
|
||||
self,
|
||||
name,
|
||||
filename,
|
||||
validate: int = 0,
|
||||
subfontIndex: int = 0,
|
||||
asciiReadable: Incomplete | None = None,
|
||||
shaped: Incomplete | None = None,
|
||||
) -> None: ...
|
||||
def stringWidth(self, text, size, encoding: str = "utf8"): ...
|
||||
def splitString(self, text, doc, encoding: str = "utf-8"): ...
|
||||
def getSubsetInternalName(self, subset, doc): ...
|
||||
def addObjects(self, doc) -> None: ...
|
||||
@property
|
||||
def hbFace(self) -> Incomplete | None: ...
|
||||
def hbFont(self, fontSize: float = 10): ...
|
||||
@property
|
||||
def isShaped(self) -> bool: ...
|
||||
@isShaped.setter
|
||||
def isShaped(self, v) -> None: ...
|
||||
def pdfScale(self, v): ...
|
||||
def unregister(self) -> None: ...
|
||||
|
||||
class ShapedFragWord(list[Incomplete]): ...
|
||||
|
||||
class ShapeData(NamedTuple):
|
||||
cluster: int
|
||||
x_advance: float
|
||||
y_advance: float
|
||||
x_offset: float
|
||||
y_offset: float
|
||||
width: float
|
||||
|
||||
class ShapedStr(str):
|
||||
def __new__(cls, s, shapeData: ShapeData | None = None) -> Self: ...
|
||||
def __radd__(self, other) -> Self: ...
|
||||
|
||||
def freshTTFont(ttfn, ttfpath, **kwds) -> TTFont: ...
|
||||
def makeShapedFragWord(w, K: list[Incomplete] = [], V: list[Incomplete] = []) -> type[ShapedFragWord]: ...
|
||||
def shapeFragWord(w, features: Incomplete | None = None): ...
|
||||
|
||||
@@ -304,3 +304,4 @@ class Canvas(_PDFColorSetter):
|
||||
@property
|
||||
def acroForm(self): ...
|
||||
def drawBoundary(self, sb, x1: float, y1: float, width: float, height: float) -> None: ...
|
||||
def shapedText(self, text) -> tuple[Incomplete, Incomplete]: ...
|
||||
|
||||
@@ -69,3 +69,4 @@ defCWRF: float
|
||||
T1SearchPath: Incomplete
|
||||
TTFSearchPath: Incomplete
|
||||
CMapSearchPath: Incomplete
|
||||
shapedFontGlob: list[Incomplete]
|
||||
|
||||
@@ -70,3 +70,4 @@ defCWRF: Final[float]
|
||||
T1SearchPath: Final[Incomplete]
|
||||
TTFSearchPath: Final[Incomplete]
|
||||
CMapSearchPath: Final[Incomplete]
|
||||
shapedFontGlob: Final[Incomplete | None]
|
||||
|
||||
Reference in New Issue
Block a user