Skip to content

Commit e714a3c

Browse files
committed
import Sequence from typing instead of collections.abc
Signed-off-by: ytl0623 <[email protected]>
1 parent 50cc7e9 commit e714a3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

monai/losses/focal_loss.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
from __future__ import annotations
1313

1414
import warnings
15-
from collections.abc import Sequence
16-
from typing import Optional
15+
from typing import Optional, Sequence
1716

1817
import torch
1918
import torch.nn.functional as F

0 commit comments

Comments
 (0)