Skip to content

Commit b921ee6

Browse files
datumboxfacebook-github-bot
authored andcommitted
[fbsync] Fix mypy job failing (#5970)
Reviewed By: YosuaMichael Differential Revision: D36281601 fbshipit-source-id: 33d2ba14754d6787b9a7b1812e17b081917eb4a1
1 parent 09a6089 commit b921ee6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchvision/models/_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import importlib
22
import inspect
33
import sys
4-
from collections import OrderedDict
54
from dataclasses import dataclass, fields
65
from inspect import signature
76
from typing import Any, Callable, Dict, cast
@@ -60,7 +59,7 @@ def verify(cls, obj: Any) -> Any:
6059
)
6160
return obj
6261

63-
def get_state_dict(self, progress: bool) -> OrderedDict:
62+
def get_state_dict(self, progress: bool) -> Dict[str, Any]:
6463
return load_state_dict_from_url(self.url, progress=progress)
6564

6665
def __repr__(self) -> str:

0 commit comments

Comments
 (0)