mypy.ini 2.39 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
[mypy-torchvision.prototype.datapoints.*]
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

; untyped definitions and calls
disallow_untyped_defs = True

; None and Optional handling
no_implicit_optional = True

; warnings
warn_unused_ignores = 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

; miscellaneous strictness flags
allow_redefinition = True

38
39
40
41
42
43
44
45
46
47
48
49
50
[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

; miscellaneous strictness flags
allow_redefinition = True
51

52
[mypy-torchvision.io.image.*]
53

54
ignore_errors = True
55

56
[mypy-torchvision.io.video.*]
57
58
59

ignore_errors = True

60
61
62
63
[mypy-torchvision.models.densenet.*]

ignore_errors=True

64
65
66
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
[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]
97
98
99

ignore_errors = True

Hu Ye's avatar
Hu Ye committed
100
101
102
103
[mypy-torchvision.models.detection.fcos]

ignore_errors = True

104
105
106
107
[mypy-torchvision.ops.*]

ignore_errors = True

108
109
110
111
112
113
114
115
[mypy-torchvision.transforms.functional.*]

ignore_errors = True

[mypy-torchvision.transforms.transforms.*]

ignore_errors = True

116
117
118
119
120
121
122
123
124
125
126
127
128
[mypy-PIL.*]

ignore_missing_imports = True

[mypy-numpy.*]

ignore_missing_imports = True

[mypy-scipy.*]

ignore_missing_imports = True

[mypy-pycocotools.*]
129
130
131

ignore_missing_imports = True

132
133
134
135
136
137
138
[mypy-lmdb.*]

ignore_missing_imports = True

[mypy-accimage.*]

ignore_missing_imports = True
139
140
141
142

[mypy-av.*]

ignore_missing_imports = True
143
144
145
146

[mypy-defusedxml.*]

ignore_missing_imports = True
147
148
149
150

[mypy-torchdata.*]

ignore_missing_imports = True
151
152
153
154

[mypy-h5py.*]

ignore_missing_imports = True