Skip to content

Commit 6752c7a

Browse files
committed
Fix allocator type annotations in grudge.actx
1 parent 286c766 commit 6752c7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

grudge/array_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class PyOpenCLArrayContext(_PyOpenCLArrayContextBase):
113113
any, for now.)
114114
"""
115115
def __init__(self, queue: "pyopencl.CommandQueue",
116-
allocator: Optional["pyopencl.tools.AllocatorInterface"] = None,
116+
allocator: Optional["pyopencl.tools.AllocatorBase"] = None,
117117
wait_event_queue_length: Optional[int] = None,
118118
force_device_scalars: bool = False) -> None:
119119

@@ -430,7 +430,7 @@ class MPIPyOpenCLArrayContext(PyOpenCLArrayContext, MPIBasedArrayContext):
430430
def __init__(self,
431431
mpi_communicator,
432432
queue: "pyopencl.CommandQueue",
433-
*, allocator: Optional["pyopencl.tools.AllocatorInterface"] = None,
433+
*, allocator: Optional["pyopencl.tools.AllocatorBase"] = None,
434434
wait_event_queue_length: Optional[int] = None,
435435
force_device_scalars: bool = False) -> None:
436436
"""

0 commit comments

Comments
 (0)