Skip to content

Commit 297815a

Browse files
authored
Fix mypy (#9093)
1 parent 3c4ec97 commit 297815a

File tree

2 files changed

+6
-46
lines changed

2 files changed

+6
-46
lines changed

mypy.ini

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ ignore_errors = True
2929

3030
ignore_errors = True
3131

32+
[mypy-torchvision.prototype.models.*]
33+
34+
ignore_errors = True
35+
3236
[mypy-torchvision.io.image.*]
3337

3438
ignore_errors = True
@@ -41,54 +45,10 @@ ignore_errors = True
4145

4246
ignore_errors = True
4347

44-
[mypy-torchvision.models.densenet.*]
48+
[mypy-torchvision.models.*]
4549

4650
ignore_errors=True
4751

48-
[mypy-torchvision.models.maxvit.*]
49-
50-
ignore_errors=True
51-
52-
[mypy-torchvision.models.detection.anchor_utils]
53-
54-
ignore_errors = True
55-
56-
[mypy-torchvision.models.detection.transform]
57-
58-
ignore_errors = True
59-
60-
[mypy-torchvision.models.detection.roi_heads]
61-
62-
ignore_errors = True
63-
64-
[mypy-torchvision.models.detection.faster_rcnn]
65-
66-
ignore_errors = True
67-
68-
[mypy-torchvision.models.detection.mask_rcnn]
69-
70-
ignore_errors = True
71-
72-
[mypy-torchvision.models.detection.keypoint_rcnn]
73-
74-
ignore_errors = True
75-
76-
[mypy-torchvision.models.detection.retinanet]
77-
78-
ignore_errors = True
79-
80-
[mypy-torchvision.models.detection.ssd]
81-
82-
ignore_errors = True
83-
84-
[mypy-torchvision.models.detection.ssdlite]
85-
86-
ignore_errors = True
87-
88-
[mypy-torchvision.models.detection.fcos]
89-
90-
ignore_errors = True
91-
9252
[mypy-torchvision.ops.*]
9353

9454
ignore_errors = True

torchvision/transforms/v2/functional/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def _rotate_image_pil(
10521052
interpolation = _check_interpolation(interpolation)
10531053

10541054
return _FP.rotate(
1055-
image, angle, interpolation=pil_modes_mapping[interpolation], expand=expand, fill=fill, center=center
1055+
image, angle, interpolation=pil_modes_mapping[interpolation], expand=expand, fill=fill, center=center # type: ignore[arg-type]
10561056
)
10571057

10581058

0 commit comments

Comments
 (0)