Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyopencl/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@
import mako
import pytest
from numpy.typing import DTypeLike, NDArray
else:
import pyopencl._mymako as mako

# Do not add a pyopencl import here: This will add an import cycle.

Expand Down Expand Up @@ -1325,6 +1323,8 @@ class _MakoTextTemplate(_TextTemplate):
template: mako.template.Template = field(init=False)

def __post_init__(self) -> None:
import pyopencl._mymako as mako

object.__setattr__(self, "template",
mako.template.Template(self.txt, strict_undefined=True))

Expand Down
Loading