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

Update/fixmypydocs #73

Merged
merged 7 commits into from
Apr 17, 2024
Merged

Update/fixmypydocs #73

merged 7 commits into from
Apr 17, 2024

Conversation

cqc-melf
Copy link
Collaborator

@cqc-melf cqc-melf commented Apr 16, 2024

Description

Please summarise the changes.

Related issues

Please mention any github issues addressed by this PR.

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@cqc-melf cqc-melf marked this pull request as ready for review April 16, 2024 17:08
@cqc-melf cqc-melf requested a review from sjdilkes as a code owner April 16, 2024 17:08
@@ -265,7 +265,7 @@ def tk_to_cirq(tkcirc: Circuit, copy_all_qubits: bool = False) -> cirq.circuits.
"Cannot convert tket Op to Cirq gate: " + op.get_name()
) from error
if optype == OpType.Measure:
qid = qmap[command.args[0]]
qid = qmap[cast(Qubit, command.args[0])]
Copy link

@CalMacCQ CalMacCQ Apr 16, 2024

Choose a reason for hiding this comment

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

Why is this cast neeeded now? Has there been some change in mypy behaviour?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is because of mypy updates

@cqc-melf cqc-melf requested a review from CalMacCQ April 17, 2024 07:42
@cqc-melf cqc-melf merged commit 1a795ab into develop Apr 17, 2024
7 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.

None yet

3 participants