From 01687a6bada0e2981f10b22e059705cb03581932 Mon Sep 17 00:00:00 2001 From: PyTorch MergeBot Date: Tue, 31 Jan 2023 01:13:01 +0000 Subject: [PATCH] Revert "add numpy typing plugin to mypy config (#92930)" This reverts commit 5f1ac188f8dd01a81d0ddeebdbc4d22e25311b72. Reverted https://github.com/pytorch/pytorch/pull/92930 on behalf of https://github.com/clee2000 due to causing test_doc_examples (main.TestTypeHints) to fail https://github.com/pytorch/pytorch/actions/runs/4049393005/jobs/6965869223 https://hud.pytorch.org/pytorch/pytorch/commit/5f1ac188f8dd01a81d0ddeebdbc4d22e25311b72, note for revert review: PR was forced merged after first failure, which was flaky --- mypy-nofollow.ini | 2 +- mypy-strict.ini | 2 +- mypy.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mypy-nofollow.ini b/mypy-nofollow.ini index 855a2a07d5e3..7051df24a02b 100644 --- a/mypy-nofollow.ini +++ b/mypy-nofollow.ini @@ -1,5 +1,5 @@ [mypy] -plugins = mypy_plugins/check_mypy_version.py, numpy.typing.mypy_plugin +plugins = mypy_plugins/check_mypy_version.py cache_dir = .mypy_cache/nofollow warn_unused_configs = True diff --git a/mypy-strict.ini b/mypy-strict.ini index d61e6cc84b71..3e5edf90dc30 100644 --- a/mypy-strict.ini +++ b/mypy-strict.ini @@ -7,7 +7,7 @@ [mypy] python_version = 3.8 -plugins = mypy_plugins/check_mypy_version.py, numpy.typing.mypy_plugin +plugins = mypy_plugins/check_mypy_version.py cache_dir = .mypy_cache/strict strict_optional = True diff --git a/mypy.ini b/mypy.ini index a1f061ccfeda..1fc2e11c3e04 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2,7 +2,7 @@ # test_run_mypy in test/test_type_hints.py uses this string) [mypy] -plugins = mypy_plugins/check_mypy_version.py, numpy.typing.mypy_plugin +plugins = mypy_plugins/check_mypy_version.py cache_dir = .mypy_cache/normal warn_unused_configs = True