Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a90d5e9

Browse files
committed
MNT: add stub def for newly added functions
1 parent 887971a commit a90d5e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/cbook.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def open_file_cm(
7272
encoding: str | None = ...,
7373
) -> contextlib.AbstractContextManager[IO]: ...
7474
def is_scalar_or_string(val: Any) -> bool: ...
75+
def duplicate_if_scalar(obj: Any, n: int, raises: bool) -> list: ...
7576
@overload
7677
def get_sample_data(
7778
fname: str | os.PathLike, asfileobj: Literal[True] = ..., *, np_load: Literal[True]
@@ -91,6 +92,7 @@ def _get_data_path(*args: Path | str) -> Path: ...
9192
def flatten(
9293
seq: Iterable[Any], scalarp: Callable[[Any], bool] = ...
9394
) -> Generator[Any, None, None]: ...
95+
def pairwise(iterable: Iterable[Any]) -> Iterable[Any]: ...
9496

9597
class Stack(Generic[_T]):
9698
def __init__(self, default: _T | None = ...) -> None: ...

0 commit comments

Comments
 (0)