forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy-inductor.ini
83 lines (62 loc) · 1.82 KB
/
mypy-inductor.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[mypy]
plugins = mypy_plugins/check_mypy_version.py, numpy.typing.mypy_plugin
cache_dir = .mypy_cache/nofollow
allow_redefinition = True
warn_unused_configs = True
warn_redundant_casts = True
show_error_codes = True
show_column_numbers = True
check_untyped_defs = True
follow_imports = silent
# do not reenable this:
# https://github.com/pytorch/pytorch/pull/60006#issuecomment-866130657
warn_unused_ignores = False
disallow_any_generics = True
files =
torch/_dynamo,
torch/_inductor
# We access some Python runtime classes / class members that are only available
# in 3.11. These accesses are gated by runtime checks that cannot always be
# understood by mypy.
python_version = 3.11
[mypy-colorama.*]
ignore_missing_imports = True
[mypy-cutlass_library.*]
ignore_missing_imports = True
[mypy-deeplearning.*]
ignore_missing_imports = True
[mypy-dill.*]
ignore_missing_imports = True
[mypy-einops.*]
ignore_missing_imports = True
[mypy-libfb.*]
ignore_missing_imports = True
# sympy is too dynamic, hard to type properly
[mypy-sympy.*]
ignore_missing_imports = True
follow_imports = skip
[mypy-torch.*.fb.*]
ignore_missing_imports = True
# FIXME: importing this creates lots of type errors
[mypy-torch._dynamo.variables.*]
follow_imports = skip
# FIXME: importing this creates lots of type errors
[mypy-torch.backends.*]
follow_imports = skip
[mypy-torch.fb.*]
ignore_missing_imports = True
# FIXME: importing this creates lots of type errors
[mypy-torch.fx.*]
follow_imports = skip
# FIXME: importing this creates lots of type errors
[mypy-torch.testing._internal.*]
follow_imports = skip
# sympy is too dynamic, hard to type properly
[mypy-torch.utils._sympy.*]
follow_imports = skip
[mypy-torch_xla.*]
ignore_missing_imports = True
[mypy-torchvision.*]
ignore_missing_imports = True
[mypy-triton.*]
ignore_missing_imports = True