summaryrefslogtreecommitdiff
path: root/doc/tools
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2022-07-26 16:26:47 -0400
committerAndy Maloney <asmaloney@gmail.com>2022-07-26 16:26:47 -0400
commit4b3d6f04a8036a330d499670198463655a097736 (patch)
treea2fafb4902b693e2b184021df55e41b6ff0262d1 /doc/tools
parent0a420c478761d49b5f973ff292e1f3e4a63613b3 (diff)
Add missing Python type hints in tools/make_rst.py
Diffstat (limited to 'doc/tools')
-rwxr-xr-xdoc/tools/make_rst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 312dffc7ee..8fa530f1da 100755
--- a/doc/tools/make_rst.py
+++ b/doc/tools/make_rst.py
@@ -907,7 +907,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:
@@ -1301,7 +1301,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