Skip to content

Commit c7f2eed

Browse files
committed
Add typing for some private methods and modules
1 parent e9f1d7b commit c7f2eed

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/matplotlib/_c_internal_utils.pyi

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,9 @@ class _OrderedSet(collections.abc.MutableSet):
173173

174174
def _backend_module_name(name: str) -> str: ...
175175
def _format_approx(number: float, precision: int) -> str: ...
176+
def _setup_new_guiapp() -> None: ...
177+
def _g_sig_digits(value: float, delta: float) -> int: ...
178+
def _unikey_or_keysym_to_mplkey(unikey: str, keysym: str) -> str: ...
179+
def _auto_format_str(fmt: str, value: Any) -> str: ...
180+
def _str_equal(obj: Any, s: str) -> bool: ...
181+
def _str_lower_equal(obj: Any, s: str) -> bool: ...

0 commit comments

Comments
 (0)