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

Remove mypy --next #5763

Merged
merged 9 commits into from
Jul 14, 2022
Merged

Remove mypy --next #5763

merged 9 commits into from
Jul 14, 2022

Conversation

dabacon
Copy link
Collaborator

@dabacon dabacon commented Jul 13, 2022

A little bit cleaner separation in the giant list of packages.

Fixes #3767

@CirqBot CirqBot added the size: M 50< lines changed <250 label Jul 13, 2022
@dabacon dabacon marked this pull request as ready for review July 14, 2022 00:18
@dabacon dabacon requested review from a team, vtomole and cduck as code owners July 14, 2022 00:18
@dabacon dabacon requested a review from MichaelBroughton July 14, 2022 00:19
[mypy-apiclient.*,freezegun.*,matplotlib.*,mpl_toolkits,multiprocessing.dummy,oauth2client.*,pandas.*,proto.*,pytest.*,scipy.*,sortedcontainers.*,setuptools.*,pylatex.*,networkx.*,qiskit.*,pypandoc.*,ply.*,_pytest.*,google.api.*,google.api_core.*,grpc.*,google.auth.*,google.oauth2.*,google.protobuf.text_format.*,quimb.*,pyquil.*,google.cloud.*,filelock.*,codeowners.*,tqdm.*,importlib_metadata.*,google.colab.*,IPython.*,astroid.*,pylint.*]

# Google
[mypy-google.api_core.*,,google.auth.*,google.colab.*,google.protobuf.text_format.*,google.protobuf.*,google.cloud.*]
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • Please replace ,, --> ,
  • google.protobuf.* should be perhaps removed, it has its own block at line 25

Comment on lines 22 to 27
# Treat symbols imported from Google's protobuf library as type Any.
# This supresses errors due to attributes not known to typeshed,
# This suppresses errors due to attributes not known to typeshed,
# e.g. Descriptor._options.
[mypy-google.protobuf.*]
follow_imports = skip
follow_imports_for_stubs = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps we can move this under the first Google block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it has a slightly different structure for the flags it is changing

Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

LGTM after few minor tweaks.

@dabacon dabacon merged commit 0d7d528 into quantumlib:master Jul 14, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numpy 1.20 includes typing information, breaks mypy checks locally
3 participants