Skip to content

Commit 9e33fc8

Browse files
committed
style: Fixed type comments
1 parent 7554a1c commit 9e33fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/models/densenet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ def closure(*inputs):
7171
def forward(self, input: List[Tensor]) -> Tensor:
7272
pass
7373

74-
@torch.jit._overload_method # type: ignore[no-redef] # noqa: F811
74+
@torch.jit._overload_method # noqa: F811 # type: ignore[no-redef]
7575
def forward(self, input: Tensor) -> Tensor:
7676
pass
7777

7878
# torchscript does not yet support *args, so we overload method
7979
# allowing it to take either a List[Tensor] or single Tensor
80-
def forward(self, input: Tensor) -> Tensor: # type: ignore[no-redef] # noqa: F811
80+
def forward(self, input: Tensor) -> Tensor: # noqa: F811 # type: ignore[no-redef]
8181
if isinstance(input, Tensor):
8282
prev_features = [input]
8383
else:

0 commit comments

Comments
 (0)