dwavesystems / dwavesystems/dwave-cloud-client

Add return typehints to sample_ functions

Open
#749 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
63
Forks
44
Avg merge
13h 45m
Merged PRs (30d)
1

Description

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:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.