Skip to content

Commit

Permalink
refactor: fix shadow name from outer scope
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfischer committed Jun 26, 2023
1 parent 8dea0b1 commit 25431e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sphinxcontrib/cadquery/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from .common import DEFAULT_COLOR
from .cqgi import Cqgi, SvgExporter, VtkJsonExporter
from .option_converters import align, rgba, yes_no
from .option_converters import horizontal_align, rgba, yes_no

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -185,7 +185,7 @@ class CqSvgDirective(CqDirective):
optional_arguments = 0

option_spec = {
"align": align,
"align": horizontal_align,
"alt": directives.unchanged,
"figclass": directives.class_option,
"figwidth": directives.length_or_percentage_or_unitless,
Expand Down Expand Up @@ -304,7 +304,7 @@ class CqVtkDirective(CqDirective):
optional_arguments = 0

option_spec = {
"align": align,
"align": horizontal_align,
"color": rgba,
"figclass": directives.class_option,
"figwidth": directives.length_or_percentage_or_unitless,
Expand Down
2 changes: 1 addition & 1 deletion sphinxcontrib/cadquery/option_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from docutils.parsers.rst import directives


def align(argument):
def horizontal_align(argument):
"""Sphinx directive align option."""

return directives.choice(argument, ("left", "center", "right"))
Expand Down

0 comments on commit 25431e4

Please sign in to comment.