Skip to content

Commit

Permalink
Workaround optional typing error detected by new typing-docutils (#38012
Browse files Browse the repository at this point in the history
)
  • Loading branch information
potiuk authored Mar 9, 2024
1 parent 1690906 commit 9c9df91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/exts/substitution_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
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:
Expand Down

0 comments on commit 9c9df91

Please sign in to comment.