From c03f346a824a0c8c6a60509effed39f63afff055 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:54:38 +0100 Subject: [PATCH] update type hints --- src/sphinx_exec_code/configuration/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sphinx_exec_code/configuration/base.py b/src/sphinx_exec_code/configuration/base.py index ce1d1fb..75f1d3c 100644 --- a/src/sphinx_exec_code/configuration/base.py +++ b/src/sphinx_exec_code/configuration/base.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Final, Generic, TypeVar +from typing import TYPE_CHECKING, Any, Final, Generic, Type, TypeVar from sphinx.errors import ConfigError @@ -15,7 +15,7 @@ class SphinxConfigValue(Generic[TYPE_VALUE]): - SPHINX_TYPE: tuple[type[Any], ...] | type[Any] + SPHINX_TYPE: tuple[Type[Any], ...] | Type[Any] def __init__(self, sphinx_name: str, initial_value: TYPE_VALUE | None = None) -> None: self.sphinx_name: Final = sphinx_name