mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-06 16:16:06 +01:00
Add missing Python type hints in tools/make_rst.py
(cherry picked from commit 4b3d6f04a8036a330d499670198463655a097736)
This commit is contained in:
parent
285c2acefc
commit
9481486f92
@ -695,7 +695,7 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S
|
||||
f.write(make_footer())
|
||||
|
||||
|
||||
def escape_rst(text, until_pos=-1): # type: (str) -> str
|
||||
def escape_rst(text, until_pos=-1): # type: (str, int) -> str
|
||||
# Escape \ character, otherwise it ends up as an escape character in rst
|
||||
pos = 0
|
||||
while True:
|
||||
@ -1033,7 +1033,7 @@ def rstize_text(text, state): # type: (str, State) -> str
|
||||
return text
|
||||
|
||||
|
||||
def format_table(f, data, remove_empty_columns=False): # type: (TextIO, Iterable[Tuple[str, ...]]) -> None
|
||||
def format_table(f, data, remove_empty_columns=False): # type: (TextIO, Iterable[Tuple[str, ...]], bool) -> None
|
||||
if len(data) == 0:
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user