Skip to content

Commit

Permalink
Merge pull request python#3 from cocoatomo/utils
Browse files Browse the repository at this point in the history
Typing utils
  • Loading branch information
tk0miya authored Aug 29, 2018
2 parents 37f7456 + 00e8d2e commit f9f096a
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 827 deletions.
2 changes: 1 addition & 1 deletion third_party/3/docutils/utils/math/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

def pick_math_environment(code, numbered: bool = ...): ...
def pick_math_environment(code, numbered: bool = ...) -> str: ...
101 changes: 51 additions & 50 deletions third_party/3/docutils/utils/math/latex2mathml.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,51 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any, Optional

over: Any
Greek: Any
letters: Any
special: Any
sumintprod: Any
functions: Any
mathbb: Any
mathscr: Any
negatables: Any
from docutils import nodes
from typing import Any, Dict, List, Optional, Text, Tuple, Union

over: Dict[str, Text]
Greek: Dict[str, Text]
letters: Dict[str, Text]
special: Dict[str, Text]
sumintprod: str
functions: List[str]
mathbb: Dict[str, Text]
mathscr: Dict[str, Text]
negatables: Dict[str, Text]

class math:
nchildren: int = ...
children: Any = ...
inline: Any = ...
def __init__(self, children: Optional[Any] = ..., inline: Optional[Any] = ...) -> None: ...
def full(self): ...
def append(self, child): ...
def delete_child(self): ...
def close(self): ...
def xml(self): ...
def xml_start(self): ...
def xml_end(self): ...
def xml_body(self): ...
nchildren: Optional[int] = ...
children: Union[List[nodes.Node], nodes.Node] = ...
inline: Optional[bool] = ...
def __init__(self, children: Optional[Union[List[nodes.Node], nodes.Node]] = ..., inline: Optional[bool] = ...) -> None: ...
def full(self) -> bool: ...
def append(self, child: nodes.Node) -> nodes.Node: ...
def delete_child(self) -> nodes.Node: ...
def close(self) -> nodes.Node: ...
def xml(self) -> List[str]: ...
def xml_start(self) -> List[str]: ...
def xml_end(self) -> List[str]: ...
def xml_body(self) -> List[str]: ...

class mrow(math):
def xml_start(self): ...
def xml_start(self) -> List[str]: ...

class mtable(math):
def xml_start(self): ...
def xml_start(self) -> List[str]: ...

class mtr(mrow): ...
class mtd(mrow): ...

class mx(math):
nchildren: int = ...
data: Any = ...
def __init__(self, data) -> None: ...
def xml_body(self): ...
data: str = ...
def __init__(self, data: str) -> None: ...
def xml_body(self) -> List[str]: ...

class mo(mx):
translation: Any = ...
def xml_body(self): ...
translation: Dict[str, str] = ...
def xml_body(self) -> List[str]: ...

class mi(mx): ...
class mn(mx): ...
Expand All @@ -67,44 +68,44 @@ class mfrac(math):

class msubsup(math):
nchildren: int = ...
reversed: Any = ...
def __init__(self, children: Optional[Any] = ..., reversed: bool = ...) -> None: ...
def xml(self): ...
reversed: bool = ...
def __init__(self, children: Optional[Union[List[nodes.Node], nodes.Node]] = ..., reversed: bool = ...) -> None: ...
def xml(self) -> List[str]: ...

class mfenced(math):
translation: Any = ...
openpar: Any = ...
def __init__(self, par) -> None: ...
def xml_start(self): ...
translation: Dict[str, Text] = ...
openpar: str = ...
def __init__(self, par: str) -> None: ...
def xml_start(self) -> List[str]: ...

class mspace(math):
nchildren: int = ...

class mstyle(math):
nchildren: Any = ...
nchildren: Optional[int] = ...
attrs: Any = ...
def __init__(self, children: Optional[Any] = ..., nchildren: Optional[Any] = ..., **kwargs) -> None: ...
def xml_start(self): ...
def __init__(self, children: Optional[Union[List[nodes.Node], nodes.Node]] = ..., nchildren: Optional[int] = ..., **kwargs: Any) -> None: ...
def xml_start(self) -> List[str]: ...

class mover(math):
nchildren: int = ...
reversed: Any = ...
def __init__(self, children: Optional[Any] = ..., reversed: bool = ...) -> None: ...
def xml(self): ...
reversed: bool = ...
def __init__(self, children: Optional[Union[List[nodes.Node], nodes.Node]] = ..., reversed: bool = ...) -> None: ...
def xml(self) -> List[str]: ...

class munder(math):
nchildren: int = ...

class munderover(math):
nchildren: int = ...
def __init__(self, children: Optional[Any] = ...) -> None: ...
def __init__(self, children: Optional[Union[List[nodes.Node], nodes.Node]] = ...) -> None: ...

class mtext(math):
nchildren: int = ...
text: Any = ...
def __init__(self, text) -> None: ...
def xml_body(self): ...
text: str = ...
def __init__(self, text: str) -> None: ...
def xml_body(self) -> List[str]: ...

def parse_latex_math(string, inline: bool = ...): ...
def handle_keyword(name, node, string): ...
def tex2mathml(tex_math, inline: bool = ...): ...
def parse_latex_math(string: str, inline: bool = ...) -> math: ...
def handle_keyword(name: str, node: math, string: str) -> Tuple[math, int]: ...
def tex2mathml(tex_math: str, inline: bool = ...) -> str: ...
Loading

0 comments on commit f9f096a

Please sign in to comment.