Skip to content

Commit

Permalink
Fix typo: ToStackMatchConvertible
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 19, 2024
1 parent c6a59b4 commit 110054a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions loopy/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.. autofunction:: parse_stack_match
.. autodata:: ToStackMatchCovertible
.. autodata:: ToStackMatchConvertible
Match expressions
^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -538,10 +538,10 @@ def __call__(

# {{{ stack match parsing

ToStackMatchCovertible: TypeAlias = Union[StackMatch, str, None]
ToStackMatchConvertible: TypeAlias = Union[StackMatch, str, None]


def parse_stack_match(smatch: ToStackMatchCovertible) -> StackMatch:
def parse_stack_match(smatch: ToStackMatchConvertible) -> StackMatch:
"""Syntax example::
... > outer > ... > next > innermost $
Expand Down
6 changes: 3 additions & 3 deletions loopy/transform/iname.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

if TYPE_CHECKING:
from loopy.kernel.instruction import InstructionBase
from loopy.match import ToStackMatchCovertible
from loopy.match import ToStackMatchConvertible


__doc__ = """
Expand Down Expand Up @@ -2381,7 +2381,7 @@ def rename_inames(
old_inames: Collection[str],
new_iname: str,
existing_ok: bool = False,
within: ToStackMatchCovertible = None,
within: ToStackMatchConvertible = None,
raise_on_domain_mismatch: bool | None = None
) -> LoopKernel:
r"""
Expand Down Expand Up @@ -2525,7 +2525,7 @@ def rename_iname(
old_iname: str,
new_iname: str,
existing_ok: bool = False,
within: ToStackMatchCovertible = None,
within: ToStackMatchConvertible = None,
preserve_tags: bool = True,
raise_on_domain_mismatch: bool | None = None
) -> LoopKernel:
Expand Down
4 changes: 2 additions & 2 deletions loopy/transform/precompute.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
from pytools.tag import Tag

from loopy.kernel import LoopKernel
from loopy.match import ToStackMatchCovertible
from loopy.match import ToStackMatchConvertible


# {{{ contains_subst_rule_invocation
Expand Down Expand Up @@ -387,7 +387,7 @@ def precompute_for_single_kernel(
callables_table: CallablesTable,
subst_use,
sweep_inames=None,
within: ToStackMatchCovertible = None,
within: ToStackMatchConvertible = None,
*,
storage_axes=None,
temporary_name: str | None = None,
Expand Down

0 comments on commit 110054a

Please sign in to comment.