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

Fix typing complaints showing at numpy 1.23 #5856

Merged
merged 7 commits into from
Sep 6, 2022

Conversation

pavoljuhas
Copy link
Collaborator

  • Revert "Restrict numpy version to unblock inflight PRs from failing (Restrict numpy version to unblock inflight PRs from failing #5853)"
  • Clarify wording of ValueError message
  • Fix typing complaints on non-native numeric types
  • Fix complaint on float.rpow(cirq.Operation) use -
    cirq.Operation has no __pow__, but the GateOperation subclass has
  • Fix complaint about vstack on generic array
  • clean up unused "type: ignore" comments

Resolves #5852.

Reverts #5853.

@pavoljuhas pavoljuhas requested review from mrwojtek, a team, vtomole and cduck as code owners September 3, 2022 05:48
@CirqBot CirqBot added the size: S 10< lines changed <50 label Sep 3, 2022
Copy link
Collaborator

@tanujkhattar tanujkhattar left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@tanujkhattar tanujkhattar added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Sep 6, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Sep 6, 2022
@CirqBot CirqBot merged commit 0781f16 into quantumlib:master Sep 6, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Sep 6, 2022
@pavoljuhas pavoljuhas deleted the fix-typing-woes-of-numpy-1.23 branch September 6, 2022 17:38
@vtomole vtomole mentioned this pull request Dec 19, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
- Revert "Restrict numpy version to unblock inflight PRs from failing (quantumlib#5853)"
- Clarify wording of ValueError message
- Fix typing complaints on non-native numeric types
- Fix complaint on float.__rpow__(cirq.Operation) use -
  cirq.Operation has no `__pow__`, but the GateOperation subclass has
- Fix complaint about vstack on generic array
- clean up unused "type: ignore" comments

Resolves quantumlib#5852.

Reverts quantumlib#5853.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
- Revert "Restrict numpy version to unblock inflight PRs from failing (quantumlib#5853)"
- Clarify wording of ValueError message
- Fix typing complaints on non-native numeric types
- Fix complaint on float.__rpow__(cirq.Operation) use -
  cirq.Operation has no `__pow__`, but the GateOperation subclass has
- Fix complaint about vstack on generic array
- clean up unused "type: ignore" comments

Resolves quantumlib#5852.

Reverts quantumlib#5853.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numpy update breaks type checking on master
3 participants