Skip to content

Add return typehints to sample_ functions #749

Description

@djackdwave

Most sample functions (eg. def sample_ising) return a Future object.

Calls to these functions should use typehints to indicate the return types

ex. Look to sample_problem, it does use the typehint:

def sample_problem(self,
problem: Any,
*,
label: str | None = None,
problem_type: str | None = None,
upload_params: dict | None = None,
**sample_params: Any,
) -> Future:

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