Skip to content

Commit

Permalink
Fix loopy import
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 23, 2024
1 parent 09c0be7 commit 966aafc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyop2/local_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from typing import Union

import loopy as lp
from loopy.kernel import LoopKernel
from loopy.translation_unit import TranslationUnit
from loopy.tools import LoopyKeyBuilder
import numpy as np

Expand Down Expand Up @@ -212,7 +214,7 @@ class LoopyLocalKernel(LocalKernel):
or :class:`loopy.TranslationUnit`.
"""

@validate_type(("code", (lp.LoopKernel, lp.TranslationUnit), TypeError))
@validate_type(("code", (LoopKernel, TranslationUnit), TypeError))
def __init__(self, code, *args, **kwargs):
super().__init__(code, *args, **kwargs)

Expand Down

0 comments on commit 966aafc

Please sign in to comment.