From 1c34f995417f6fad2797de6026c974ea97b15984 Mon Sep 17 00:00:00 2001 From: Dave Bacon Date: Thu, 7 Jul 2022 01:03:15 +0000 Subject: [PATCH 1/2] next --- dev_tools/conf/mypy-next.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev_tools/conf/mypy-next.ini b/dev_tools/conf/mypy-next.ini index 06f19fedaef..b6bc00987aa 100644 --- a/dev_tools/conf/mypy-next.ini +++ b/dev_tools/conf/mypy-next.ini @@ -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 @@ -15,7 +15,7 @@ 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 From c7dbec9dd3c58aeb3454377d1d8cfd77f2001193 Mon Sep 17 00:00:00 2001 From: Dave Bacon Date: Thu, 7 Jul 2022 01:46:13 +0000 Subject: [PATCH 2/2] fix --- dev_tools/conf/mypy-next.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev_tools/conf/mypy-next.ini b/dev_tools/conf/mypy-next.ini index b6bc00987aa..481db6dc516 100644 --- a/dev_tools/conf/mypy-next.ini +++ b/dev_tools/conf/mypy-next.ini @@ -20,3 +20,7 @@ ignore_missing_imports = True [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