mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 22:56:55 +08:00
Add type annotations for 'docutils.writers.latex2e.Babel' (#12394)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user