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

Add warning for build_call_graph returning a set #1396

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

dstrain115
Copy link
Contributor

- We changed build_call_graph to return a dictionary
as a part quantumlib#845.
- This now emits a deprecation warning now that all the
built-in bloqs are converted.
warnings.warn(
"build_call_graph returning sets is deprecated (got {raw_callee_counts})."
"Please change build_call_graph for this bloq to use a dictionary."
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

add DeprecationWarning as the warning type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mpharrigan mpharrigan enabled auto-merge (squash) September 9, 2024 17:57
@mpharrigan mpharrigan merged commit b5722c0 into quantumlib:main Sep 9, 2024
8 checks passed
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