mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 14:38:28 +08:00
Add __all__ part 2 (#13719)
--------- Co-authored-by: Avasam <samuel.06@hotmail.com>
This commit is contained in:
@@ -1,26 +1,10 @@
|
||||
# TODO: missing from stub
|
||||
reportlab.graphics.barcode.__all__
|
||||
reportlab.graphics.barcode.dmtx.__all__
|
||||
reportlab.rl_config.__all__
|
||||
|
||||
# Incorrect __all__ names in runtime
|
||||
reportlab.graphics.barcode.eanbc.__all__
|
||||
reportlab.graphics.barcode.ecc200datamatrix.__all__
|
||||
reportlab.graphics.barcode.usps4s.__all__
|
||||
reportlab.graphics.barcode.widgets.__all__
|
||||
reportlab.graphics.svgpath.__all__
|
||||
reportlab.graphics.transform.__all__
|
||||
reportlab.graphics.utils.__all__
|
||||
reportlab.lib.arciv.__all__
|
||||
reportlab.lib.formatters.__all__
|
||||
reportlab.lib.pygments2xpre.__all__
|
||||
reportlab.lib.rl_accel.__all__
|
||||
reportlab.lib.rltempfile.__all__
|
||||
reportlab.lib.styles.__all__
|
||||
reportlab.pdfgen.canvas.__all__
|
||||
reportlab.platypus.frames.__all__
|
||||
reportlab.platypus.multicol.__all__
|
||||
reportlab.platypus.paragraph.__all__
|
||||
reportlab.platypus.xpreformatted.__all__
|
||||
reportlab.rl_config.__all__
|
||||
reportlab.rl_settings.__all__
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
|
||||
@@ -3,3 +3,5 @@ def getCodes(): ...
|
||||
def getCodeNames(): ...
|
||||
def createBarcodeDrawing(codeName, **options): ...
|
||||
def createBarcodeImageInMemory(codeName, **options): ...
|
||||
|
||||
__all__ = ("registerWidget", "getCodes", "getCodeNames", "createBarcodeDrawing", "createBarcodeImageInMemory")
|
||||
|
||||
@@ -39,3 +39,5 @@ class Ean5BarcodeWidget(Ean13BarcodeWidget):
|
||||
class ISBNBarcodeWidget(Ean13BarcodeWidget):
|
||||
codeName: str
|
||||
def draw(self): ...
|
||||
|
||||
__all__ = ("Ean13BarcodeWidget", "Ean8BarcodeWidget", "UPCA", "Ean5BarcodeWidget", "ISBNBarcodeWidget")
|
||||
|
||||
@@ -20,3 +20,5 @@ class ECC200DataMatrix(Barcode):
|
||||
def encode(self): ...
|
||||
def computeSize(self, *args) -> None: ...
|
||||
def draw(self) -> None: ...
|
||||
|
||||
__all__ = ("ECC200DataMatrix",)
|
||||
|
||||
@@ -83,3 +83,5 @@ class USPS_4State(Barcode):
|
||||
def value(self, value) -> None: ...
|
||||
def drawHumanReadable(self) -> None: ...
|
||||
def annotate(self, x, y, text, fontName, fontSize, anchor: str = "middle") -> None: ...
|
||||
|
||||
__all__ = ("USPS_4State",)
|
||||
|
||||
@@ -63,3 +63,18 @@ class BarcodePOSTNET(_BarcodeWidget):
|
||||
class BarcodeUSPS_4State(_BarcodeWidget):
|
||||
codeName: Final = "USPS_4State"
|
||||
def __init__(self, **kw) -> None: ...
|
||||
|
||||
__all__ = (
|
||||
"BarcodeI2of5",
|
||||
"BarcodeCode128",
|
||||
"BarcodeStandard93",
|
||||
"BarcodeExtended93",
|
||||
"BarcodeStandard39",
|
||||
"BarcodeExtended39",
|
||||
"BarcodeMSI",
|
||||
"BarcodeCodabar",
|
||||
"BarcodeCode11",
|
||||
"BarcodeFIM",
|
||||
"BarcodePOSTNET",
|
||||
"BarcodeUSPS_4State",
|
||||
)
|
||||
|
||||
@@ -6,3 +6,5 @@ class SvgPath(Path, UserNode):
|
||||
fillColor: Incomplete
|
||||
def __init__(self, s, isClipPath: int = 0, autoclose: Incomplete | None = None, fillMode=0, **kw) -> None: ...
|
||||
def provideNode(self): ...
|
||||
|
||||
__all__ = ("SvgPath",)
|
||||
|
||||
@@ -10,3 +10,18 @@ def zTransformPoint(A, v): ...
|
||||
def transformPoint(A, v): ...
|
||||
def transformPoints(matrix, V): ...
|
||||
def zTransformPoints(matrix, V): ...
|
||||
|
||||
__all__ = (
|
||||
"nullTransform",
|
||||
"translate",
|
||||
"scale",
|
||||
"rotate",
|
||||
"skewX",
|
||||
"skewY",
|
||||
"mmult",
|
||||
"inverse",
|
||||
"zTransformPoint",
|
||||
"transformPoint",
|
||||
"transformPoints",
|
||||
"zTransformPoints",
|
||||
)
|
||||
|
||||
@@ -20,3 +20,5 @@ def text2Path(
|
||||
# NOTE: This only exists on some render backends
|
||||
def processGlyph(G, truncate=1, pathReverse=0): ...
|
||||
def text2PathDescription(text, x=0, y=0, fontName=..., fontSize=1000, anchor="start", truncate=1, pathReverse=0, gs=None): ...
|
||||
|
||||
__all__ = ("setFont", "pathNumTrunc", "processGlyph", "text2PathDescription", "text2Path", "RenderPMError")
|
||||
|
||||
@@ -5,3 +5,5 @@ class ArcIV:
|
||||
|
||||
def encode(text, key): ...
|
||||
def decode(text, key): ...
|
||||
|
||||
__all__ = ["ArcIV", "encode", "decode"]
|
||||
|
||||
@@ -22,3 +22,5 @@ class DecimalFormatter(Formatter):
|
||||
suffix: Incomplete | None = None,
|
||||
) -> None: ...
|
||||
def format(self, num): ...
|
||||
|
||||
__all__ = ("Formatter", "DecimalFormatter")
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
def pygments2xpre(s, language: str = "python"): ...
|
||||
|
||||
__all__ = ("pygments2xpre",)
|
||||
|
||||
@@ -9,3 +9,17 @@ def escapePDF(s): ...
|
||||
def asciiBase85Encode(input): ...
|
||||
def asciiBase85Decode(input): ...
|
||||
def sameFrag(f, g): ...
|
||||
|
||||
__all__ = [
|
||||
"fp_str",
|
||||
"unicode2T1",
|
||||
"instanceStringWidthT1",
|
||||
"instanceStringWidthTTF",
|
||||
"asciiBase85Encode",
|
||||
"asciiBase85Decode",
|
||||
"escapePDF",
|
||||
"sameFrag",
|
||||
"calcChecksum",
|
||||
"add32",
|
||||
"hex32",
|
||||
]
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
def get_rl_tempdir(*subdirs: str) -> str: ...
|
||||
def get_rl_tempfile(fn: str | None = None) -> str: ...
|
||||
|
||||
__all__ = ("get_rl_tempdir", "get_rl_tempdir")
|
||||
|
||||
@@ -179,3 +179,5 @@ class StyleSheet1:
|
||||
def list(self) -> None: ...
|
||||
|
||||
def getSampleStyleSheet() -> StyleSheet1: ...
|
||||
|
||||
__all__ = ("PropertySet", "ParagraphStyle", "str2alignment", "LineStyle", "ListStyle", "StyleSheet1", "getSampleStyleSheet")
|
||||
|
||||
@@ -305,3 +305,5 @@ class Canvas(_PDFColorSetter):
|
||||
def acroForm(self): ...
|
||||
def drawBoundary(self, sb, x1: float, y1: float, width: float, height: float) -> None: ...
|
||||
def shapedText(self, text) -> tuple[Incomplete, Incomplete]: ...
|
||||
|
||||
__all__ = ["Canvas", "ShowBoundaryValue"]
|
||||
|
||||
@@ -35,3 +35,5 @@ class Frame:
|
||||
def drawBoundary(self, canv: Canvas) -> None: ...
|
||||
def addFromList(self, drawlist: list[Flowable], canv: Canvas) -> None: ...
|
||||
def add_generated_content(self, *C: Flowable) -> None: ...
|
||||
|
||||
__all__ = ("Frame",)
|
||||
|
||||
@@ -15,3 +15,5 @@ class MultiCol(_Container, _FindSplitterMixin, Flowable):
|
||||
spaceAfter: float | None = None,
|
||||
) -> None: ...
|
||||
def nWidths(self, aW: float) -> list[float]: ...
|
||||
|
||||
__all__ = ["MultiCol"]
|
||||
|
||||
@@ -36,3 +36,5 @@ class Paragraph(Flowable):
|
||||
def getActualLineWidths0(self) -> list[float]: ...
|
||||
@staticmethod
|
||||
def dumpFrags(frags, indent: int = 4, full: bool = False) -> str: ...
|
||||
|
||||
__all__ = ("Paragraph", "cleanBlockQuotedText", "ParaLines", "FragLine")
|
||||
|
||||
@@ -28,3 +28,5 @@ class PythonPreformatted(XPreformatted):
|
||||
) -> None: ...
|
||||
def escapeHtml(self, text: str) -> str: ...
|
||||
def fontify(self, code: str) -> str: ...
|
||||
|
||||
__all__ = ("XPreformatted", "PythonPreformatted")
|
||||
|
||||
@@ -71,3 +71,72 @@ T1SearchPath: Final[Incomplete]
|
||||
TTFSearchPath: Final[Incomplete]
|
||||
CMapSearchPath: Final[Incomplete]
|
||||
shapedFontGlob: Final[Incomplete | None]
|
||||
|
||||
__all__ = (
|
||||
"allowTableBoundsErrors",
|
||||
"shapeChecking",
|
||||
"defaultEncoding",
|
||||
"defaultGraphicsFontName",
|
||||
"pageCompression",
|
||||
"useA85",
|
||||
"defaultPageSize",
|
||||
"defaultImageCaching",
|
||||
"warnOnMissingFontGlyphs",
|
||||
"verbose",
|
||||
"showBoundary",
|
||||
"emptyTableAction",
|
||||
"invariant",
|
||||
"eps_preview_transparent",
|
||||
"eps_preview",
|
||||
"eps_ttf_embed",
|
||||
"eps_ttf_embed_uid",
|
||||
"overlapAttachedSpace",
|
||||
"longTableOptimize",
|
||||
"autoConvertEncoding",
|
||||
"_FUZZ",
|
||||
"wrapA85",
|
||||
"fsEncodings",
|
||||
"odbc_driver",
|
||||
"platypus_link_underline",
|
||||
"canvas_basefontname",
|
||||
"allowShortTableRows",
|
||||
"imageReaderFlags",
|
||||
"paraFontSizeHeightOffset",
|
||||
"canvas_baseColor",
|
||||
"ignoreContainerActions",
|
||||
"ttfAsciiReadable",
|
||||
"pdfMultiLine",
|
||||
"pdfComments",
|
||||
"debug",
|
||||
"rtlSupport",
|
||||
"listWrapOnFakeWidth",
|
||||
"T1SearchPath",
|
||||
"TTFSearchPath",
|
||||
"CMapSearchPath",
|
||||
"decimalSymbol",
|
||||
"errorOnDuplicatePageLabelPage",
|
||||
"autoGenerateMissingTTFName",
|
||||
"allowTTFSubsetting",
|
||||
"spaceShrinkage",
|
||||
"underlineWidth",
|
||||
"underlineOffset",
|
||||
"underlineGap",
|
||||
"strikeWidth",
|
||||
"strikeOffset",
|
||||
"strikeGap",
|
||||
"hyphenationLang",
|
||||
"uriWasteReduce",
|
||||
"embeddedHyphenation",
|
||||
"hyphenationMinWordLength",
|
||||
"reserveTTFNotdef",
|
||||
"documentLang",
|
||||
"encryptionStrength",
|
||||
"trustedHosts",
|
||||
"trustedSchemes",
|
||||
"renderPMBackend",
|
||||
"xmlParser",
|
||||
"textPaths",
|
||||
"toColorCanUse",
|
||||
"defCWRF",
|
||||
"shapedFontGlob",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user