diff --git a/lib/matplotlib/_c_internal_utils.pyi b/lib/matplotlib/_c_internal_utils.pyi index 3a211223be80..3efc81bc8332 100644 --- a/lib/matplotlib/_c_internal_utils.pyi +++ b/lib/matplotlib/_c_internal_utils.pyi @@ -1 +1,7 @@ def display_is_valid() -> bool: ... + +def Win32_GetForegroundWindow() -> int | None: ... +def Win32_SetForegroundWindow(hwnd: int) -> None: ... +def Win32_SetProcessDpiAwareness_max() -> None: ... +def Win32_SetCurrentProcessExplicitAppUserModelID(appid: str) -> None: ... +def Win32_GetCurrentProcessExplicitAppUserModelID() -> str | None: ... diff --git a/lib/matplotlib/cbook.pyi b/lib/matplotlib/cbook.pyi index 227a23df4168..a6ad1e54a51c 100644 --- a/lib/matplotlib/cbook.pyi +++ b/lib/matplotlib/cbook.pyi @@ -161,6 +161,10 @@ def normalize_kwargs( ) -> dict[str, Any]: ... def _lock_path(path: str | os.PathLike) -> contextlib.AbstractContextManager[None]: ... def _str_equal(obj: Any, s: str) -> bool: ... +def _str_lower_equal(obj: Any, s: str) -> bool: ... +def _array_perimeter(arr: np.ndarray) -> np.ndarray: ... +def _unfold(arr: np.ndarray, axis: int, size: int, step: int) -> np.ndarray: ... +def _array_patch_perimeters(x: np.ndarray, rstride: int, cstride: int) -> np.ndarray: ... def _setattr_cm(obj: Any, **kwargs) -> contextlib.AbstractContextManager[None]: ... class _OrderedSet(collections.abc.MutableSet): @@ -172,4 +176,8 @@ class _OrderedSet(collections.abc.MutableSet): def discard(self, key) -> None: ... def _backend_module_name(name: str) -> str: ... +def _setup_new_guiapp() -> None: ... def _format_approx(number: float, precision: int) -> str: ... +def _g_sig_digits(value: float, delta: float) -> int: ... +def _unikey_or_keysym_to_mplkey(unikey: str, keysym: str) -> str: ... +def _auto_format_str(fmt: str, value: Any) -> str: ...