Skip to content

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

Merged
wshanks merged 1 commit into
stable/0.8from
mergify/bp/stable/0.8/pr-1489
Nov 15, 2024
Merged

Move Provider import only under TYPE_CHECKING conditions (backport #1489)#1490
wshanks merged 1 commit into
stable/0.8from
mergify/bp/stable/0.8/pr-1489

Conversation

@mergify
Copy link
Copy Markdown

@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
@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