mypy.ini 1.79 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.io.image.*]
11

12
ignore_errors = True
13

14
[mypy-torchvision.io.video.*]
15
16
17

ignore_errors = True

18
19
20
21
[mypy-torchvision.io.video_reader]

ignore_errors = True

22
23
24
25
[mypy-torchvision.models.densenet.*]

ignore_errors=True

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
[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]
59
60
61

ignore_errors = True

Hu Ye's avatar
Hu Ye committed
62
63
64
65
[mypy-torchvision.models.detection.fcos]

ignore_errors = True

66
67
68
69
[mypy-torchvision.ops.*]

ignore_errors = True

70
71
72
73
[mypy-torchvision.transforms._functional_pil]

ignore_errors = True

74
75
76
77
78
79
80
81
[mypy-torchvision.transforms.functional.*]

ignore_errors = True

[mypy-torchvision.transforms.transforms.*]

ignore_errors = True

82
83
84
85
86
87
88
89
90
91
92
93
94
[mypy-PIL.*]

ignore_missing_imports = True

[mypy-numpy.*]

ignore_missing_imports = True

[mypy-scipy.*]

ignore_missing_imports = True

[mypy-pycocotools.*]
95
96
97

ignore_missing_imports = True

98
99
100
101
102
103
104
[mypy-lmdb.*]

ignore_missing_imports = True

[mypy-accimage.*]

ignore_missing_imports = True
105
106
107
108

[mypy-av.*]

ignore_missing_imports = True
109
110
111
112

[mypy-defusedxml.*]

ignore_missing_imports = True
113
114
115
116

[mypy-torchdata.*]

ignore_missing_imports = True
117
118
119
120

[mypy-h5py.*]

ignore_missing_imports = True
121
122
123
124

[mypy-gdown.*]

ignore_missing_imports = True