From b4f2767e475f5a9ebdcd307ea6559fd8de81465d Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Tue, 23 Jul 2024 13:48:00 -0400 Subject: [PATCH] fixes conf.py Signed-off-by: Michael Carlstrom --- ament_index_python/docs/source/conf.py | 8 +++++--- ament_index_python/test/test_mypy.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ament_index_python/docs/source/conf.py b/ament_index_python/docs/source/conf.py index ffcb7f9..052cc8a 100644 --- a/ament_index_python/docs/source/conf.py +++ b/ament_index_python/docs/source/conf.py @@ -30,6 +30,8 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) +# -- Imports ----------------------------------------------------- +from typing import Dict, List, Sequence # -- Project information ----------------------------------------------------- @@ -82,7 +84,7 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = [] +exclude_patterns: Sequence[str] = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = None @@ -104,7 +106,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = [] +html_static_path: List[str] = [] # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -125,7 +127,7 @@ # -- Options for LaTeX output ------------------------------------------------ -latex_elements = { +latex_elements: Dict[str, str] = { # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', diff --git a/ament_index_python/test/test_mypy.py b/ament_index_python/test/test_mypy.py index 325516f..16d0794 100644 --- a/ament_index_python/test/test_mypy.py +++ b/ament_index_python/test/test_mypy.py @@ -16,5 +16,5 @@ def test_mypy() -> None: - rc = main(argv=['--exclude', 'test', 'docs']) + rc = main(argv=['--exclude', 'test']) assert rc == 0, 'Found code style errors / warnings'