Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Provider import only under TYPE_CHECKING conditions (backport #1489) #1490

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 15, 2024

Summary

Qiskit 1.1 deprecated the Provider abstract class to be removed in 2.0 (planned for 1Q2025). In those cases where the class is used for only typechecking purposes, the import should only happen when TYPE_CHECKING. For the rest of the cases, I opened #1488


This is an automatic backport of pull request #1489 done by [Mergify](https://mergify.com).

### Summary

Qiskit 1.1 deprecated the Provider abstract class to be removed in 2.0
(planned for 1Q2025). In those cases where the class is used for only
typechecking purposes, the import should only happen when
`TYPE_CHECKING`. For the rest of the cases, I opened
#1488

(cherry picked from commit 519bb53)
@wshanks wshanks merged commit 0bea9df into stable/0.8 Nov 15, 2024
11 checks passed
@wshanks wshanks deleted the mergify/bp/stable/0.8/pr-1489 branch November 15, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants