From 40ca909996498ba34be8217727ccc23ebe9139b5 Mon Sep 17 00:00:00 2001 From: Lim-jooyoung Date: Thu, 5 Nov 2026 09:28:43 +0900 Subject: [PATCH] [pyxdg] Allow None return from load_first_config --- stubs/pyxdg/xdg/BaseDirectory.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/pyxdg/xdg/BaseDirectory.pyi b/stubs/pyxdg/xdg/BaseDirectory.pyi index 6c39679d8a20..900591447994 100644 --- a/stubs/pyxdg/xdg/BaseDirectory.pyi +++ b/stubs/pyxdg/xdg/BaseDirectory.pyi @@ -13,6 +13,6 @@ def save_data_path(*resource: StrPath) -> str: ... def save_cache_path(*resource: StrPath) -> str: ... def save_state_path(*resource: StrPath) -> str: ... def load_config_paths(*resource: StrPath) -> Iterator[str]: ... -def load_first_config(*resource: StrPath) -> str: ... +def load_first_config(*resource: StrPath) -> str | None: ... def load_data_paths(*resource: StrPath) -> Iterator[str]: ... def get_runtime_dir(strict: bool = True) -> str: ...