mypy.ini 2.45 KB
Newer Older
1
2
3
4
5
[mypy]

files = torchvision
show_error_codes = True
pretty = True
6
allow_redefinition = True
7
8
warn_redundant_casts = True

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
[mypy-torchvision.prototype.features.*]

; untyped definitions and calls
disallow_untyped_defs = True

; None and Optional handling
no_implicit_optional = True

; warnings
warn_unused_ignores = True
warn_return_any = True

; miscellaneous strictness flags
allow_redefinition = True

[mypy-torchvision.prototype.transforms.*]

; untyped definitions and calls
disallow_untyped_defs = True

; None and Optional handling
no_implicit_optional = True

; warnings
warn_unused_ignores = True
warn_return_any = True

; miscellaneous strictness flags
allow_redefinition = True

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[mypy-torchvision.prototype.datasets.*]

; untyped definitions and calls
disallow_untyped_defs = True

; None and Optional handling
no_implicit_optional = True

; warnings
warn_unused_ignores = True
warn_return_any = True
warn_unreachable = True

; miscellaneous strictness flags
allow_redefinition = True
54

55
[mypy-torchvision.io.image.*]
56

57
ignore_errors = True
58

59
[mypy-torchvision.io.video.*]
60
61
62

ignore_errors = True

63
64
65
66
[mypy-torchvision.models.densenet.*]

ignore_errors=True

67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[mypy-torchvision.models.detection.anchor_utils]

ignore_errors = True

[mypy-torchvision.models.detection.transform]

ignore_errors = True

[mypy-torchvision.models.detection.roi_heads]

ignore_errors = True

[mypy-torchvision.models.detection.faster_rcnn]

ignore_errors = True

[mypy-torchvision.models.detection.mask_rcnn]

ignore_errors = True

[mypy-torchvision.models.detection.keypoint_rcnn]

ignore_errors = True

[mypy-torchvision.models.detection.retinanet]

ignore_errors = True

[mypy-torchvision.models.detection.ssd]

ignore_errors = True

[mypy-torchvision.models.detection.ssdlite]
100
101
102

ignore_errors = True

Hu Ye's avatar
Hu Ye committed
103
104
105
106
[mypy-torchvision.models.detection.fcos]

ignore_errors = True

107
108
109
110
[mypy-torchvision.ops.*]

ignore_errors = True

111
112
113
114
115
116
117
118
[mypy-torchvision.transforms.functional.*]

ignore_errors = True

[mypy-torchvision.transforms.transforms.*]

ignore_errors = True

119
120
121
122
123
124
125
126
127
128
129
130
131
[mypy-PIL.*]

ignore_missing_imports = True

[mypy-numpy.*]

ignore_missing_imports = True

[mypy-scipy.*]

ignore_missing_imports = True

[mypy-pycocotools.*]
132
133
134

ignore_missing_imports = True

135
136
137
138
139
140
141
[mypy-lmdb.*]

ignore_missing_imports = True

[mypy-accimage.*]

ignore_missing_imports = True
142
143
144
145

[mypy-av.*]

ignore_missing_imports = True
146
147
148
149

[mypy-defusedxml.*]

ignore_missing_imports = True
150
151
152
153

[mypy-torchdata.*]

ignore_missing_imports = True
154
155
156
157

[mypy-h5py.*]

ignore_missing_imports = True