Skip to content

sync() function default value #40

Closed

Description

@sakchal

The sync function is supposed to take a default device_id value of -1 according to the docs, but I'm forced to pass in an argument when calling the function. I made a PR for a potential fix.

def sync(device_id: int, /) -> None:
    """
    Blocks until all operations on device are finished.

    Parameters
    ----------
    device_id: int
        Id of the target device.
    """
    call_from_clib(sync.__name__, `device_id)

Activity

  1. syurkevi commented on Apr 12, 2024

    @syurkevi
    Contributor

    Addressed in #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions