diff --git a/stubs/boltons/METADATA.toml b/stubs/boltons/METADATA.toml index 60b70b567c40..ffd472f488d7 100644 --- a/stubs/boltons/METADATA.toml +++ b/stubs/boltons/METADATA.toml @@ -1,2 +1,2 @@ -version = "24.1.*" +version = "25.0.*" upstream_repository = "https://github.com/mahmoud/boltons" diff --git a/stubs/boltons/boltons/fileutils.pyi b/stubs/boltons/boltons/fileutils.pyi index 53a836fb67cf..a371c5378a0c 100644 --- a/stubs/boltons/boltons/fileutils.pyi +++ b/stubs/boltons/boltons/fileutils.pyi @@ -1,10 +1,12 @@ from _typeshed import StrOrBytesPath from collections.abc import Callable, Generator, Iterable +from os import PathLike from types import TracebackType from typing import IO, Any, NoReturn from typing_extensions import Self def mkdir_p(path: StrOrBytesPath) -> None: ... +def rotate_file(filename: PathLike[str], *, keep: int = 5) -> None: ... class FilePerms: user: str diff --git a/stubs/boltons/boltons/strutils.pyi b/stubs/boltons/boltons/strutils.pyi index 9243a4b78c4a..6a25d9278d36 100644 --- a/stubs/boltons/boltons/strutils.pyi +++ b/stubs/boltons/boltons/strutils.pyi @@ -60,3 +60,4 @@ class MultiReplace: def multi_replace(text: str, sub_map: dict[str, str], **kwargs) -> str: ... def unwrap_text(text: str, ending: str = "\n\n") -> str: ... +def removeprefix(text: str, prefix: str) -> str: ...