Accept PathLike in Sphinx.add_message_catalog()

This commit is contained in:
Adam Turner committed 2024-10-25 22:49:51 +01:00
1 parent 8cd599c50a
commit 116a430cac
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ if TYPE_CHECKING:
def _init_console(
locale_dir: str | None = sphinx.locale._LOCALE_DIR,
locale_dir: str | os.PathLike[str] | None = sphinx.locale._LOCALE_DIR,
catalog: str = 'sphinx',
) -> tuple[gettext.NullTranslations, bool]:
"""Monkeypatch ``init_console`` to skip its action.