-
Notifications
You must be signed in to change notification settings - Fork 2
/
errno_.py
29 lines (25 loc) · 670 Bytes
/
errno_.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
Generate `pyi` from corresponding `rst` docs.
"""
import rst
from rst2pyi import RST2PyI
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "7.5.3" # Version set by https://github.com/hlovatt/tag2ver
def errno(shed: RST2PyI) -> None:
shed.module(
name="errno",
old="system error codes",
post_doc=f"""
from typing import Final, Dict
""",
end=r"Constants",
)
shed.vars(
old=r".. data:: EEXIST, EAGAIN, etc.", class_var=None,
)
shed.vars(
old=r".. data:: errorcode", type_="Dict[int, str]", class_var=None,
)
shed.write(u_also=True)