From c37e84961d9ffbc77ab7be268081d1b3497f0311 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sat, 9 Sep 2023 23:57:15 +0100 Subject: [PATCH] Quote a not-runtime-generic type annotation --- src/furo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/furo/__init__.py b/src/furo/__init__.py index 70647ff3..905994b9 100644 --- a/src/furo/__init__.py +++ b/src/furo/__init__.py @@ -292,7 +292,7 @@ def _get_dark_style(app: sphinx.application.Sphinx) -> Style: return cast(Style, PygmentsBridge("html", dark_style).formatter_args["style"]) -def _get_styles(formatter: HtmlFormatter[str], *, prefix: str) -> Iterator[str]: +def _get_styles(formatter: "HtmlFormatter[str]", *, prefix: str) -> Iterator[str]: """Get styles out of a formatter, where everything has the correct prefix.""" for line in formatter.get_linenos_style_defs(): # type: ignore[no-untyped-call] yield f"{prefix} {line}"