Skip to content

Commit 7cfe997

Browse files
committed
Mark some overrides
1 parent d672a2e commit 7cfe997

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytato/target/loopy/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
import numpy as np
5858
from immutabledict import immutabledict
59+
from typing_extensions import override
5960

6061
import loopy
6162

@@ -123,10 +124,12 @@ def __init__(self, device: pyopencl.Device | None = None):
123124
warn("Passing 'device' is deprecated and will stop working in 2023.",
124125
DeprecationWarning, stacklevel=2)
125126

127+
@override
126128
def get_loopy_target(self) -> loopy.PyOpenCLTarget:
127129
import loopy as lp
128130
return lp.PyOpenCLTarget()
129131

132+
@override
130133
def bind_program(self, program: loopy.TranslationUnit,
131134
bound_arguments: Mapping[str, Any]) -> BoundProgram:
132135
return BoundPyOpenCLProgram(program=program,

0 commit comments

Comments
 (0)