From 073c497ecc607bc7d073ef7f34fc310f5f4808d9 Mon Sep 17 00:00:00 2001 From: Frank Dana Date: Sun, 7 Jul 2024 05:30:03 -0400 Subject: [PATCH] Move a 'type: ignore' comment, for mypy (#812) --- src/furo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/furo/__init__.py b/src/furo/__init__.py index 0dbbf94e1..1647e0747 100644 --- a/src/furo/__init__.py +++ b/src/furo/__init__.py @@ -308,8 +308,8 @@ def update_known_styles_state(app: sphinx.application.Sphinx) -> None: def _get_light_style(app: sphinx.application.Sphinx) -> Style: # fmt: off # For https://github.com/psf/black/issues/3869 - return ( - app # type: ignore[no-any-return] + return ( # type: ignore[no-any-return] + app .builder .highlighter # type: ignore[attr-defined] .formatter_args["style"]