Closed ytzhao closed 1 year ago
If we install mmeval with python3.6.x, it will crash to call from mmeval import Accuracy.
from mmeval import Accuracy
Replace hasattr with getattr when recursively traversing nested type hints in dispatcher.
hasattr
getattr
All committers have signed the CLA.
Motivation
If we install mmeval with python3.6.x, it will crash to call
from mmeval import Accuracy
.Modification
Replace
hasattr
withgetattr
when recursively traversing nested type hints in dispatcher.