Skip to content

Avoid using NotImplemented as a boolean #7259

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

Conversation

pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented Apr 9, 2025

Address DeprecationWarning: NotImplemented should not be used in a boolean context
This fixes

check/pytest -Werror:"NotImplemented should":DeprecationWarning

Address DeprecationWarning: NotImplemented should not be used in a boolean context

This fixes  check/pytest -Werror:"NotImplemented should":DeprecationWarning
@pavoljuhas pavoljuhas requested review from vtomole and a team as code owners April 9, 2025 19:35
@pavoljuhas pavoljuhas requested review from maffoo and BichengYing April 9, 2025 19:35
@pavoljuhas pavoljuhas enabled auto-merge April 9, 2025 19:36
@pavoljuhas pavoljuhas added the priority/before-1.5 Finish before the Cirq 1.5 release label Apr 9, 2025
@pavoljuhas pavoljuhas added this pull request to the merge queue Apr 9, 2025
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.64%. Comparing base (c3b329d) to head (1d1124f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7259      +/-   ##
==========================================
- Coverage   98.64%   98.64%   -0.01%     
==========================================
  Files        1106     1106              
  Lines       95985    95985              
==========================================
- Hits        94688    94686       -2     
- Misses       1297     1299       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Merged via the queue into quantumlib:main with commit 65a4105 Apr 9, 2025
39 checks passed
@pavoljuhas pavoljuhas deleted the fix-deprecation-of-notimplemented-as-bool branch April 9, 2025 20:07
babacry pushed a commit to babacry/Cirq that referenced this pull request Apr 9, 2025
Address DeprecationWarning: NotImplemented should not be used in a boolean context

This fixes  check/pytest -Werror:"NotImplemented should":DeprecationWarning
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
Address DeprecationWarning: NotImplemented should not be used in a boolean context

This fixes  check/pytest -Werror:"NotImplemented should":DeprecationWarning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/before-1.5 Finish before the Cirq 1.5 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants