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

Simplify type annotations in mps_simulator.py #3926

Merged
merged 2 commits into from
Mar 18, 2021
Merged

Conversation

maffoo
Copy link
Contributor

@maffoo maffoo commented Mar 17, 2021

These give me type errors when running mypy locally. It seems to happen on intermittently, for reasons I haven't full understood, but in any event it seems better to just simplify them since these refer to types defined in the same module.

@maffoo maffoo requested review from cduck, vtomole and a team as code owners March 17, 2021 21:12
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Mar 17, 2021
Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

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

I'm also seeing the intermittent mypy failures here - my first thought was some sort of import-order nondeterminism. Were you able to confirm whether this PR resolved those?

@maffoo
Copy link
Contributor Author

maffoo commented Mar 18, 2021

@95-martin-orion, with this change I haven't seen any mypy errors in mps simulator, so I think this fixes it.

@maffoo maffoo added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 18, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Mar 18, 2021
@CirqBot CirqBot merged commit 3d369a0 into master Mar 18, 2021
@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 18, 2021
@CirqBot CirqBot deleted the u/maffoo/mps-types branch March 18, 2021 21:50
@CirqBot CirqBot removed the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants