2
2
#
3
3
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4
4
5
- from typing import Any , Optional
6
-
7
- over : Any
8
- Greek : Any
9
- letters : Any
10
- special : Any
11
- sumintprod : Any
12
- functions : Any
13
- mathbb : Any
14
- mathscr : Any
15
- negatables : Any
5
+ from docutils import nodes
6
+ from typing import Any , Dict , List , Optional , Text , Tuple , Union
7
+
8
+ over : Dict [str , Text ]
9
+ Greek : Dict [str , Text ]
10
+ letters : Dict [str , Text ]
11
+ special : Dict [str , Text ]
12
+ sumintprod : str
13
+ functions : List [str ]
14
+ mathbb : Dict [str , Text ]
15
+ mathscr : Dict [str , Text ]
16
+ negatables : Dict [str , Text ]
16
17
17
18
class math :
18
- nchildren : int = ...
19
- children : Any = ...
20
- inline : Any = ...
21
- def __init__ (self , children : Optional [Any ] = ..., inline : Optional [Any ] = ...) -> None : ...
22
- def full (self ): ...
23
- def append (self , child ) : ...
24
- def delete_child (self ): ...
25
- def close (self ): ...
26
- def xml (self ): ...
27
- def xml_start (self ): ...
28
- def xml_end (self ): ...
29
- def xml_body (self ): ...
19
+ nchildren : Optional [ int ] = ...
20
+ children : Union [ List [ nodes . Node ], nodes . Node ] = ...
21
+ inline : Optional [ bool ] = ...
22
+ def __init__ (self , children : Optional [Union [ List [ nodes . Node ], nodes . Node ]] = ..., inline : Optional [bool ] = ...) -> None : ...
23
+ def full (self ) -> bool : ...
24
+ def append (self , child : nodes . Node ) -> nodes . Node : ...
25
+ def delete_child (self ) -> nodes . Node : ...
26
+ def close (self ) -> nodes . Node : ...
27
+ def xml (self ) -> List [ str ] : ...
28
+ def xml_start (self ) -> List [ str ] : ...
29
+ def xml_end (self ) -> List [ str ] : ...
30
+ def xml_body (self ) -> List [ str ] : ...
30
31
31
32
class mrow (math ):
32
- def xml_start (self ): ...
33
+ def xml_start (self ) -> List [ str ] : ...
33
34
34
35
class mtable (math ):
35
- def xml_start (self ): ...
36
+ def xml_start (self ) -> List [ str ] : ...
36
37
37
38
class mtr (mrow ): ...
38
39
class mtd (mrow ): ...
39
40
40
41
class mx (math ):
41
42
nchildren : int = ...
42
- data : Any = ...
43
- def __init__ (self , data ) -> None : ...
44
- def xml_body (self ): ...
43
+ data : str = ...
44
+ def __init__ (self , data : str ) -> None : ...
45
+ def xml_body (self ) -> List [ str ] : ...
45
46
46
47
class mo (mx ):
47
- translation : Any = ...
48
- def xml_body (self ): ...
48
+ translation : Dict [ str , str ] = ...
49
+ def xml_body (self ) -> List [ str ] : ...
49
50
50
51
class mi (mx ): ...
51
52
class mn (mx ): ...
@@ -67,44 +68,44 @@ class mfrac(math):
67
68
68
69
class msubsup (math ):
69
70
nchildren : int = ...
70
- reversed : Any = ...
71
- def __init__ (self , children : Optional [Any ] = ..., reversed : bool = ...) -> None : ...
72
- def xml (self ): ...
71
+ reversed : bool = ...
72
+ def __init__ (self , children : Optional [Union [ List [ nodes . Node ], nodes . Node ] ] = ..., reversed : bool = ...) -> None : ...
73
+ def xml (self ) -> List [ str ] : ...
73
74
74
75
class mfenced (math ):
75
- translation : Any = ...
76
- openpar : Any = ...
77
- def __init__ (self , par ) -> None : ...
78
- def xml_start (self ): ...
76
+ translation : Dict [ str , Text ] = ...
77
+ openpar : str = ...
78
+ def __init__ (self , par : str ) -> None : ...
79
+ def xml_start (self ) -> List [ str ] : ...
79
80
80
81
class mspace (math ):
81
82
nchildren : int = ...
82
83
83
84
class mstyle (math ):
84
- nchildren : Any = ...
85
+ nchildren : Optional [ int ] = ...
85
86
attrs : Any = ...
86
- def __init__ (self , children : Optional [Any ] = ..., nchildren : Optional [Any ] = ..., ** kwargs ) -> None : ...
87
- def xml_start (self ): ...
87
+ def __init__ (self , children : Optional [Union [ List [ nodes . Node ], nodes . Node ]] = ..., nchildren : Optional [int ] = ..., ** kwargs : Any ) -> None : ...
88
+ def xml_start (self ) -> List [ str ] : ...
88
89
89
90
class mover (math ):
90
91
nchildren : int = ...
91
- reversed : Any = ...
92
- def __init__ (self , children : Optional [Any ] = ..., reversed : bool = ...) -> None : ...
93
- def xml (self ): ...
92
+ reversed : bool = ...
93
+ def __init__ (self , children : Optional [Union [ List [ nodes . Node ], nodes . Node ] ] = ..., reversed : bool = ...) -> None : ...
94
+ def xml (self ) -> List [ str ] : ...
94
95
95
96
class munder (math ):
96
97
nchildren : int = ...
97
98
98
99
class munderover (math ):
99
100
nchildren : int = ...
100
- def __init__ (self , children : Optional [Any ] = ...) -> None : ...
101
+ def __init__ (self , children : Optional [Union [ List [ nodes . Node ], nodes . Node ] ] = ...) -> None : ...
101
102
102
103
class mtext (math ):
103
104
nchildren : int = ...
104
- text : Any = ...
105
- def __init__ (self , text ) -> None : ...
106
- def xml_body (self ): ...
105
+ text : str = ...
106
+ def __init__ (self , text : str ) -> None : ...
107
+ def xml_body (self ) -> List [ str ] : ...
107
108
108
- def parse_latex_math (string , inline : bool = ...): ...
109
- def handle_keyword (name , node , string ) : ...
110
- def tex2mathml (tex_math , inline : bool = ...): ...
109
+ def parse_latex_math (string : str , inline : bool = ...) -> math : ...
110
+ def handle_keyword (name : str , node : math , string : str ) -> Tuple [ math , int ] : ...
111
+ def tex2mathml (tex_math : str , inline : bool = ...) -> str : ...
0 commit comments