Skip to content

Commit ab748d3

Browse files
authored
Add type annotations for 'docutils.writers.latex2e.Babel' (#12394)
1 parent 08f8901 commit ab748d3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
from _typeshed import Incomplete
2+
from typing import ClassVar
3+
4+
from docutils.utils import Reporter
5+
6+
class Babel:
7+
language_codes: ClassVar[dict[str, str]]
8+
warn_msg: ClassVar[str]
9+
active_chars: ClassVar[dict[str, str]]
10+
11+
reporter: Reporter | None
12+
language: str
13+
otherlanguages: dict[str, str]
14+
15+
def __init__(self, language_code: str, reporter: Reporter | None = None) -> None: ...
16+
def __call__(self) -> str: ...
17+
def language_name(self, language_code: str) -> str: ...
18+
def get_language(self) -> str: ...
219

320
def __getattr__(name: str) -> Incomplete: ...

0 commit comments

Comments
 (0)