Skip to content

Commit

Permalink
Missing stubs for mypy --next (#5670)
Browse files Browse the repository at this point in the history
Adds missing stubs and makes consistent with mypi.ini.

Likely need to audit this at some point.
  • Loading branch information
dabacon authored Jul 7, 2022
1 parent f94d1f6 commit 1f2b1d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dev_tools/conf/mypy-next.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ follow_imports = silent
ignore_missing_imports = true

# 3rd-party libs for which we don't have stubs
[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.oauth2.*,google.protobuf.text_format.*,quimb.*,pyquil.*,google.cloud.*,filelock.*,codeowners.*,tqdm.*]
[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.*,qcs_api_client.*]
follow_imports = silent
ignore_missing_imports = true

Expand All @@ -15,8 +15,12 @@ ignore_missing_imports = true
ignore_missing_imports = True

# 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

# ruamel is a downstream dependency of cirq-rigetti through pyquil.
[mypy-ruamel.*]
ignore_missing_imports = true

0 comments on commit 1f2b1d1

Please sign in to comment.