mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Accept PathLike in Sphinx.add_message_catalog()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user