diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-03-13 10:30:59 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-03-13 10:37:50 +0300 |
commit | aeb9e42d2be2b697879120b18a6380edf934e80b (patch) | |
tree | a60d542a501b15daa8bfdad2cf12b05e6be31379 /sphinx/builders/latex/constants.py | |
parent | c817c206265f545529b5fabe43fdf162bbc9bea2 (diff) |
refactor: Use PEP-526 based variable annotation (sphinx.builders)
Diffstat (limited to 'sphinx/builders/latex/constants.py')
-rw-r--r-- | sphinx/builders/latex/constants.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/builders/latex/constants.py b/sphinx/builders/latex/constants.py index e929736a7..f5e69225d 100644 --- a/sphinx/builders/latex/constants.py +++ b/sphinx/builders/latex/constants.py @@ -71,7 +71,7 @@ XELATEX_GREEK_DEFAULT_FONTPKG = (XELATEX_DEFAULT_FONTPKG + LUALATEX_DEFAULT_FONTPKG = XELATEX_DEFAULT_FONTPKG -DEFAULT_SETTINGS = { +DEFAULT_SETTINGS: Dict[str, Any] = { 'latex_engine': 'pdflatex', 'papersize': '', 'pointsize': '', @@ -121,9 +121,9 @@ DEFAULT_SETTINGS = { 'figure_align': 'htbp', 'tocdepth': '', 'secnumdepth': '', -} # type: Dict[str, Any] +} -ADDITIONAL_SETTINGS = { +ADDITIONAL_SETTINGS: Dict[Any, Dict[str, Any]] = { 'pdflatex': { 'inputenc': '\\usepackage[utf8]{inputenc}', 'utf8extra': ('\\ifdefined\\DeclareUnicodeCharacter\n' @@ -202,7 +202,7 @@ ADDITIONAL_SETTINGS = { ('xelatex', 'el'): { 'fontpkg': XELATEX_GREEK_DEFAULT_FONTPKG, }, -} # type: Dict[Any, Dict[str, Any]] +} SHORTHANDOFF = r''' |