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

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

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
[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

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[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
55

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

58
ignore_errors = True
59

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

ignore_errors = True

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

ignore_errors=True

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
100
[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]
101
102
103

ignore_errors = True

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

ignore_errors = True

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

ignore_errors = True

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

ignore_errors = True

[mypy-torchvision.transforms.transforms.*]

ignore_errors = True

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

ignore_missing_imports = True

[mypy-numpy.*]

ignore_missing_imports = True

[mypy-scipy.*]

ignore_missing_imports = True

[mypy-pycocotools.*]
133
134
135

ignore_missing_imports = True

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

ignore_missing_imports = True

[mypy-accimage.*]

ignore_missing_imports = True
143
144
145
146

[mypy-av.*]

ignore_missing_imports = True
147
148
149
150

[mypy-defusedxml.*]

ignore_missing_imports = True
151
152
153
154

[mypy-torchdata.*]

ignore_missing_imports = True
155
156
157
158

[mypy-h5py.*]

ignore_missing_imports = True