You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2024/07/11 14:19:51 UTC

(airflow) branch main updated: Fix typing issue with new version of types-docutils released` (#40727)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 97b88fd825 Fix typing issue with new version of types-docutils released` (#40727)
97b88fd825 is described below

commit 97b88fd825007d61fd245b065cd72c8de8c49447
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Thu Jul 11 16:19:44 2024 +0200

    Fix typing issue with new version of types-docutils released` (#40727)
---
 docs/exts/substitution_extensions.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/exts/substitution_extensions.py b/docs/exts/substitution_extensions.py
index 12827b29d7..faa9501ffe 100644
--- a/docs/exts/substitution_extensions.py
+++ b/docs/exts/substitution_extensions.py
@@ -28,7 +28,6 @@ from sphinx.transforms import SphinxTransform
 from sphinx.transforms.post_transforms.code import HighlightLanguageTransform
 
 if TYPE_CHECKING:
-    from docutils.utils import SystemMessage
     from sphinx.application import Sphinx
 
 LOGGER = logging.getLogger(__name__)
@@ -86,7 +85,7 @@ class SubstitutionCodeBlockTransform(SphinxTransform):
             node.rawsource = node.astext()
 
 
-def substitution_code_role(*args, **kwargs) -> tuple[list, list[SystemMessage]]:
+def substitution_code_role(*args, **kwargs) -> tuple[list, list[Any]]:
     """Decorate an inline code so that SubstitutionCodeBlockTransform will notice it"""
     [node], system_messages = code_role(*args, **kwargs)
     node[_SUBSTITUTION_OPTION_NAME] = True  # type: ignore[index]