Skip to content

Bump reportlab to 4.2.2 #12227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all 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.2.0"
version = "4.2.2"
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
upstream_repository = "https://github.com/MrBitBucket/reportlab-mirror"

Expand Down
34 changes: 23 additions & 11 deletions stubs/reportlab/reportlab/lib/rl_safe_eval.pyi
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import ast
import math
import re
import time
from _typeshed import Incomplete
from collections.abc import Generator
from typing import NoReturn

eval_debug: Incomplete
strTypes: Incomplete
isPy39: Incomplete
haveNameConstant: Incomplete
eval_debug: int
strTypes: tuple[type[bytes], type[str]]
isPy39: bool
isPy313: bool
haveNameConstant: bool

class BadCode(ValueError): ...

augOps: Incomplete
__allowed_magic_methods__: Incomplete
__rl_unsafe__: Incomplete
__rl_unsafe_re__: Incomplete
augOps: dict[ast.operator, str]
__allowed_magic_methods__: frozenset[str]
__rl_unsafe__: frozenset[str]
__rl_unsafe_re__: re.Pattern[str]

def copy_locations(new_node, old_node) -> None: ...

Expand Down Expand Up @@ -175,7 +177,12 @@ class __RL_SAFE_ENV__:
real_bi: Incomplete
bi_replace: Incomplete
__rl_builtins__: Incomplete
def __init__(self, timeout: Incomplete | None = None, allowed_magic_methods: Incomplete | None = None) -> None: ...
def __init__(
self,
timeout: Incomplete | None = None,
allowed_magic_methods: Incomplete | None = None,
allowed_magic_names: Incomplete | None = None,
) -> None: ...
def __rl_type__(self, *args): ...
def __rl_check__(self) -> None: ...
def __rl_sd__(self, obj): ...
Expand All @@ -194,10 +201,10 @@ class __RL_SAFE_ENV__:
def __rl_reversed__(self, seq): ...
def __rl_range__(self, start, *args): ...
def __rl_set__(self, it): ...
def __rl_frozenset__(self, it): ...
def __rl_frozenset__(self, it=()): ...
def __rl_iter_unpack_sequence__(self, it, spec, _getiter_) -> Generator[Incomplete, None, None]: ...
def __rl_unpack_sequence__(self, it, spec, _getiter_): ...
def __rl_is_allowed_name__(self, name) -> None: ...
def __rl_is_allowed_name__(self, name, crash: bool = True) -> bool: ...
def __rl_getattr__(self, obj, a, *args): ...
def __rl_getitem__(self, obj, a): ...
__rl_tmax__: int
Expand Down Expand Up @@ -229,6 +236,7 @@ class __RL_SAFE_ENV__:
timeout: Incomplete | None = None,
allowed_magic_methods: Incomplete | None = None,
__frame_depth__: int = 3,
allowed_magic_names: Incomplete | None = None,
): ...

class __rl_safe_eval__:
Expand All @@ -242,6 +250,7 @@ class __rl_safe_eval__:
l: Incomplete | None = None,
timeout: Incomplete | None = None,
allowed_magic_methods: Incomplete | None = None,
allowed_magic_names: Incomplete | None = None,
): ...

class __rl_safe_exec__(__rl_safe_eval__):
Expand All @@ -251,3 +260,6 @@ def rl_extended_literal_eval(expr, safe_callables: Incomplete | None = None, saf

rl_safe_exec: __rl_safe_exec__
rl_safe_eval: __rl_safe_eval__

def __fix_set__(value, default=...): ...
def rl_less_safe_eval(expr, NS): ...
6 changes: 6 additions & 0 deletions stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -625,3 +625,9 @@ class PDFRadialShading(PDFShading):
otherkw: Incomplete
def __init__(self, x0, y0, r0, x1, y1, r1, Function, ColorSpace, **kw) -> None: ...
def Dict(self, document): ...

class XMP(PDFStream):
def __init__(self, path: Incomplete | None = None, creator: Incomplete | None = None) -> None: ...
def makeContent(self, doc): ...
# Param name is changed from the base class:
def format(self, doc): ...