diff --git a/mypy-strict.ini b/mypy-strict.ini index 02478cd418e..e8bc2c2554d 100644 --- a/mypy-strict.ini +++ b/mypy-strict.ini @@ -44,8 +44,8 @@ files = tools/extract_scripts.py, tools/mypy_wrapper.py, tools/print_test_stats.py, - tools/pyi/*.py, - tools/stats_utils/*.py, + tools/pyi, + tools/stats_utils, tools/test_history.py, tools/test/test_extract_scripts.py, tools/test/test_mypy_wrapper.py, @@ -59,7 +59,7 @@ files = torch/testing/_internal/framework_utils.py, torch/utils/benchmark/utils/common.py, torch/utils/benchmark/utils/timer.py, - torch/utils/benchmark/utils/valgrind_wrapper/*.py, + torch/utils/benchmark/utils/valgrind_wrapper, torch/utils/_pytree.py # Specifically enable imports of benchmark utils. As more of `torch` becomes diff --git a/mypy.ini b/mypy.ini index 11d120ebef5..555c7185924 100644 --- a/mypy.ini +++ b/mypy.ini @@ -36,7 +36,7 @@ files = tools/clang_format_utils.py, tools/clang_tidy.py, tools/generate_torch_version.py, - tools/stats_utils/*.py + tools/stats_utils # # `exclude` is a regex, not a list of paths like `files` (sigh)