-
Notifications
You must be signed in to change notification settings - Fork 1k
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
update files to conform to new mypy standard #6662
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6662 +/- ##
==========================================
- Coverage 97.81% 97.81% -0.01%
==========================================
Files 1066 1066
Lines 91832 91833 +1
==========================================
Hits 89826 89826
- Misses 2006 2007 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix! One small question before approving
@@ -899,6 +899,8 @@ def test_cphase_unitary(angle_rads, expected_unitary): | |||
np.testing.assert_allclose(cirq.unitary(cirq.cphase(angle_rads)), expected_unitary) | |||
|
|||
|
|||
# TODO(#6663): fix this use case. | |||
@pytest.mark.xfail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why this stopped working? If just the latter assertion is broken can we break it out into it's own test and mark it as failed / track a fix for it, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like either comparison between sympy numbers and floats changed or something changed that changes the functions called during comparison ... either way I opened #6663 to fix it.
dev_tools/conf/mypy.ini
Outdated
@@ -1,5 +1,5 @@ | |||
[mypy] | |||
exclude = dev_tools/modules_test_data/.*/setup\.py | |||
exclude = dev_tools/modules_test_data/.*/setup\.py|cirq-rigetti/(?!__init__.)*\.py # Temperarly exclude cirq-rigetti (see #6661) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporarily
this changes updates code to conform to the new mypy standard. Note that cirq-rigetti needs a lot of work so I temporarily turned off mypy checks for it and filed quantumlib#6661 to track that work.
this changes updates code to conform to the new mypy standard.
Note that cirq-rigetti needs a lot of work so I temporarily turned off mypy checks for it and filed #6661 to track that work.