Skip to content

Commit 587a8e5

Browse files
committed
Add typing for some private methods and modules
1 parent 9b16729 commit 587a8e5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/matplotlib/_c_internal_utils.pyi

+6
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
def display_is_valid() -> bool: ...
2+
3+
def Win32_GetForegroundWindow() -> int | None: ...
4+
def Win32_SetForegroundWindow(hwnd: int) -> None: ...
5+
def Win32_SetProcessDpiAwareness_max() -> None: ...
6+
def Win32_SetCurrentProcessExplicitAppUserModelID(appid: str) -> None: ...
7+
def Win32_GetCurrentProcessExplicitAppUserModelID() -> str | None: ...

lib/matplotlib/cbook.pyi

+8
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def normalize_kwargs(
161161
) -> dict[str, Any]: ...
162162
def _lock_path(path: str | os.PathLike) -> contextlib.AbstractContextManager[None]: ...
163163
def _str_equal(obj: Any, s: str) -> bool: ...
164+
def _str_lower_equal(obj: Any, s: str) -> bool: ...
165+
def _array_perimeter(arr: np.ndarray) -> np.ndarray: ...
166+
def _unfold(arr: np.ndarray, axis: int, size: int, step: int) -> np.ndarray: ...
167+
def _array_patch_perimeters(x: np.ndarray, rstride: int, cstride: int) -> np.ndarray: ...
164168
def _setattr_cm(obj: Any, **kwargs) -> contextlib.AbstractContextManager[None]: ...
165169

166170
class _OrderedSet(collections.abc.MutableSet):
@@ -172,4 +176,8 @@ class _OrderedSet(collections.abc.MutableSet):
172176
def discard(self, key) -> None: ...
173177

174178
def _backend_module_name(name: str) -> str: ...
179+
def _setup_new_guiapp() -> None: ...
175180
def _format_approx(number: float, precision: int) -> str: ...
181+
def _g_sig_digits(value: float, delta: float) -> int: ...
182+
def _unikey_or_keysym_to_mplkey(unikey: str, keysym: str) -> str: ...
183+
def _auto_format_str(fmt: str, value: Any) -> str: ...

0 commit comments

Comments
 (0)