Add type annotations for 'docutils.writers.latex2e.Babel' (#12394)

This commit is contained in:
danieleades
2024-07-23 12:56:38 +01:00
committed by GitHub
parent 08f89019c6
commit ab748d34f0

View File

@@ -1,3 +1,20 @@
from _typeshed import Incomplete
from typing import ClassVar
from docutils.utils import Reporter
class Babel:
language_codes: ClassVar[dict[str, str]]
warn_msg: ClassVar[str]
active_chars: ClassVar[dict[str, str]]
reporter: Reporter | None
language: str
otherlanguages: dict[str, str]
def __init__(self, language_code: str, reporter: Reporter | None = None) -> None: ...
def __call__(self) -> str: ...
def language_name(self, language_code: str) -> str: ...
def get_language(self) -> str: ...
def __getattr__(name: str) -> Incomplete: ...