File tree 2 files changed +2
-5
lines changed
torchvision/prototype/datapoints
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ allow_redefinition = True
7
7
no_implicit_optional = True
8
8
warn_redundant_casts = True
9
9
10
- [mypy-torchvision.prototype.features .*]
10
+ [mypy-torchvision.prototype.datapoints .*]
11
11
12
12
; untyped definitions and calls
13
13
disallow_untyped_defs = True
@@ -17,7 +17,6 @@ no_implicit_optional = True
17
17
18
18
; warnings
19
19
warn_unused_ignores = True
20
- warn_return_any = True
21
20
22
21
; miscellaneous strictness flags
23
22
allow_redefinition = True
@@ -46,8 +45,6 @@ no_implicit_optional = True
46
45
47
46
; warnings
48
47
warn_unused_ignores = True
49
- warn_return_any = True
50
- warn_unreachable = True
51
48
52
49
; miscellaneous strictness flags
53
50
allow_redefinition = True
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def __torch_function__(
98
98
# `args = (torch.Tensor(), datapoints.Image())` first. Without this guard, the original `torch.Tensor` would
99
99
# be wrapped into a `datapoints.Image`.
100
100
if wrapper and isinstance (args [0 ], cls ):
101
- return wrapper (cls , args [0 ], output ) # type: ignore[no-any-return]
101
+ return wrapper (cls , args [0 ], output )
102
102
103
103
# Inplace `func`'s, canonically identified with a trailing underscore in their name like `.add_(...)`,
104
104
# will retain the input type. Thus, we need to unwrap here.
You can’t perform that action at this time.
0 commit comments