Skip to content

Commit 37d85a3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 08523ce commit 37d85a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monai/utils/module.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from pydoc import locate
2727
from re import match
2828
from types import FunctionType, ModuleType
29-
from typing import Any, Iterable, cast, Dict, List
29+
from typing import Any, Iterable, cast
3030

3131
import torch
3232

@@ -60,7 +60,7 @@
6060
"pytorch_after",
6161
]
6262

63-
WRITER_PACKAGE_MAP: Dict[str, List[str]] = {
63+
WRITER_PACKAGE_MAP: dict[str, list[str]] = {
6464
"png": ["pillow"],
6565
"jpg": ["pillow"],
6666
"jpeg": ["pillow"],
@@ -344,7 +344,7 @@ class OptionalImportError(ImportError):
344344
"""
345345
Could not import APIs from an optional dependency.
346346
"""
347-
347+
348348
def __init__(self, msg: str = "") -> None:
349349
super().__init__(msg)
350350
self.msg = msg

0 commit comments

Comments
 (0)