Skip to content

Commit

Permalink
Fix enqueue_fill signature
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Aug 5, 2022
1 parent d642040 commit 7ef5ce5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyopencl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from sys import intern
from warnings import warn
from typing import Union, Any
from typing import Union, Any, Optional, Sequence

from pyopencl.version import VERSION, VERSION_STATUS, VERSION_TEXT # noqa

Expand Down Expand Up @@ -1821,8 +1821,10 @@ def enqueue_copy(queue, dest, src, **kwargs):

# {{{ enqueue_fill

def enqueue_fill(queue: CommandQueue, dest: Union[MemoryObjectHolder, SVMPointer],
pattern: Any, size: int, *, offset: int = 0, wait_for=None) -> Event:
def enqueue_fill(queue: CommandQueue,
dest: "Union[MemoryObjectHolder, SVMPointer]",
pattern: Any, size: int, *, offset: int = 0,
wait_for: Optional[Sequence[Event]] = None) -> Event:
"""
.. versionadded:: 2022.2
"""
Expand Down

0 comments on commit 7ef5ce5

Please sign in to comment.