This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-8-test by this push:
new 44bef58bab Workaround optional typing error detected by new
typing-docutils (#38012)
44bef58bab is described below
commit 44bef58bab64117ceb579e89459c358003f6bc5d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Mar 9 18:40:32 2024 +0100
Workaround optional typing error detected by new typing-docutils (#38012)
(cherry picked from commit 9c9df91c00dffb1bd21ebcf5e8b92a521d9b93e6)
---
docs/exts/substitution_extensions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/exts/substitution_extensions.py
b/docs/exts/substitution_extensions.py
index 549bf423b6..12827b29d7 100644
--- a/docs/exts/substitution_extensions.py
+++ b/docs/exts/substitution_extensions.py
@@ -41,7 +41,7 @@ _SUBSTITUTION_OPTION_NAME = "substitutions"
class SubstitutionCodeBlock(OriginalCodeBlock): # type: ignore
"""Similar to CodeBlock but replaces placeholders with variables."""
- option_spec = OriginalCodeBlock.option_spec.copy()
+ option_spec = OriginalCodeBlock.option_spec.copy() # type:
ignore[union-attr]
option_spec[_SUBSTITUTION_OPTION_NAME] = directives.flag
def run(self) -> list: