Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Remove invalid type hint from least_busy method #1129

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

mtreinish
Copy link
Member

Summary

This commit removes an invalid type hint from the least_busy method.
This method was incorrectly listing the BaseBackend class as a valid
input and output type from the method. This has not been a supported
type since #817. Additionally, the class has been deprecated in
qiskit-terra for ~1 year now and was recently removed from the main
development branch. The ibmq provider should not be importing using
this legacy type, especially for a type hint as it is not used
anywhere.

Details and comments

This commit removes an invalid type hint from the least_busy method.
This method was incorrectly listing the BaseBackend class as a valid
input and output type from the method. This has not been a supported
type since Qiskit#817. Additionally, the class has been deprecated in
qiskit-terra for ~1 year now and was recently removed from the main
development branch. The ibmq provider should not be importing using
this legacy type, especially for a type hint as it is not used
anywhere.
@mtreinish mtreinish added Changelog: Bugfix Include in the Fixed section of the changelog backport potential The bug might be minimal and/or import enough to be port to stable labels Apr 20, 2022
@mtreinish mtreinish requested a review from jyu00 April 20, 2022 14:07
Copy link
Member

@rathishcholarajan rathishcholarajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @mtreinish!

@rathishcholarajan rathishcholarajan merged commit b136a19 into Qiskit:master Apr 20, 2022
@mtreinish mtreinish deleted the remove-invalid-type-hint branch April 20, 2022 15:09
rathishcholarajan pushed a commit that referenced this pull request Apr 20, 2022
This commit removes an invalid type hint from the least_busy method.
This method was incorrectly listing the BaseBackend class as a valid
input and output type from the method. This has not been a supported
type since #817. Additionally, the class has been deprecated in
qiskit-terra for ~1 year now and was recently removed from the main
development branch. The ibmq provider should not be importing using
this legacy type, especially for a type hint as it is not used
anywhere.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
backport potential The bug might be minimal and/or import enough to be port to stable Changelog: Bugfix Include in the Fixed section of the changelog priority: high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants