Files
pytorch/mypy-nofollow.ini
PyTorch MergeBot 01687a6bad 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 5f1ac188f8, note for revert review: PR was forced merged after first failure, which was flaky
2023-01-31 01:13:01 +00:00

36 lines
717 B
INI

[mypy]
plugins = mypy_plugins/check_mypy_version.py
cache_dir = .mypy_cache/nofollow
warn_unused_configs = True
warn_redundant_casts = True
show_error_codes = True
show_column_numbers = True
check_untyped_defs = True
follow_imports = skip
# do not reenable this:
# https://github.com/pytorch/pytorch/pull/60006#issuecomment-866130657
warn_unused_ignores = False
disallow_any_generics = True
files =
torch/_dynamo,
test/test_utils.py
# Minimum version supported - variable annotations were introduced
# in Python 3.8
python_version = 3.8
[mypy-sympy]
ignore_missing_imports = True
[mypy-sympy.*]
ignore_missing_imports = True
[mypy-torch._C]
ignore_errors = True
[mypy-torch._C.*]
ignore_errors = True