Skip to content

Commit bd20f5b

Browse files
committed
fix: return type hint
1 parent 75e1c6d commit bd20f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
OPTIMIZERS: Dict[str, Optimizer] = {str(optimizer.__name__).lower(): optimizer for optimizer in OPTIMIZER_LIST}
5858

5959

60-
def load_optimizer(optimizer: str) -> OPTIMIZERS: # pylint: disable=R0911
60+
def load_optimizer(optimizer: str) -> Optimizer: # pylint: disable=R0911
6161
optimizer: str = optimizer.lower()
6262

6363
if optimizer not in OPTIMIZERS:

0 commit comments

Comments
 (0)