summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
diff options
context:
space:
mode:
authordanieleades <33452915+danieleades@users.noreply.github.com>2022-07-18 22:08:16 +0100
committerGitHub <noreply@github.com>2022-07-18 22:08:16 +0100
commita504ac6100a577cbda1bedf80d69636603ee287c (patch)
tree0aa79585440486bdb109f7238f8f5c992dad0d99 /sphinx/writers/html5.py
parenta340427ba4d208193d539cb7e8401be23d75547e (diff)
downloadsphinx-git-a504ac6100a577cbda1bedf80d69636603ee287c.tar.gz
Improve static typing strictness (#10569)
Diffstat (limited to 'sphinx/writers/html5.py')
-rw-r--r--sphinx/writers/html5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py
index 9f33f5458..3ed72f882 100644
--- a/sphinx/writers/html5.py
+++ b/sphinx/writers/html5.py
@@ -837,13 +837,13 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
node['ids'].remove(id)
@property
- def _fieldlist_row_index(self):
+ def _fieldlist_row_index(self) -> int:
warnings.warn('_fieldlist_row_index is deprecated',
RemovedInSphinx60Warning, stacklevel=2)
return self._fieldlist_row_indices[-1]
@property
- def _table_row_index(self):
+ def _table_row_index(self) -> int:
warnings.warn('_table_row_index is deprecated',
RemovedInSphinx60Warning, stacklevel=2)
return self._table_row_indices[-1]