Skip to content
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.5.0"
version = "4.5.1"
# GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file
upstream-repository = "https://github.com/MrBitBucket/reportlab-mirror"

Expand Down
9 changes: 9 additions & 0 deletions stubs/reportlab/reportlab/lib/utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,12 @@ class KlassStore:
def __contains__(self, k) -> bool: ...
def __getitem__(self, k: str) -> type: ...
def get(self, k, default=None): ...

@type_check_only
class _rl_warn:
def __init__(self) -> None: ...
def __call__(self, message: str) -> None: ...
@property
def warnings_seen(self) -> dict[str, set[str]]: ...

rl_warn: _rl_warn
9 changes: 7 additions & 2 deletions stubs/reportlab/reportlab/rl_config.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from _typeshed import Incomplete
from collections.abc import Callable
from typing import Literal
from typing import Any, Literal
from weakref import ReferenceType

def register_reset(func: Callable[[], Callable[[], object] | None]) -> None: ...
__all__ = ("_reset", "register_reset")

def register_reset(
Comment thread
sobolevn marked this conversation as resolved.
func: Callable[[], Callable[[], object] | None], callback: Callable[[ReferenceType[Any]], object] | None = None
) -> None: ...
def _reset() -> None: ...

allowTableBoundsErrors: int
Expand Down
Loading