Skip to content

Commit b200633

Browse files
committed
apply isort changes
Changes were automatically applied by running: python -m isort . Signed-off-by: James Butler <[email protected]>
1 parent 0f797d7 commit b200633

File tree

30 files changed

+30
-65
lines changed

30 files changed

+30
-65
lines changed

monai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
from __future__ import annotations
1313

14+
import logging
1415
import os
1516
import sys
16-
import logging
1717
import warnings
18-
from ._version import get_versions
1918

19+
from ._version import get_versions
2020

2121
old_showwarning = warnings.showwarning
2222

monai/apps/detection/transforms/array.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515

1616
from __future__ import annotations
1717

18-
from typing import Any
19-
2018
from collections.abc import Sequence
19+
from typing import Any
2120

2221
import numpy as np
2322
import torch

monai/apps/detection/utils/anchor_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
from __future__ import annotations
4141

42-
4342
from collections.abc import Sequence
4443

4544
import torch

monai/apps/pathology/engines/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
from __future__ import annotations
1313

14-
from typing import Any
15-
1614
from collections.abc import Sequence
15+
from typing import Any
1716

1817
import torch
1918

monai/apps/pathology/inferers/inferer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
from __future__ import annotations
1313

14-
from typing import Any, Callable
15-
1614
from collections.abc import Sequence
15+
from typing import Any, Callable
1716

1817
import numpy as np
1918
import torch

monai/apps/pathology/metrics/lesion_froc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
from __future__ import annotations
1313

14-
from typing import TYPE_CHECKING, Any
15-
1614
from collections.abc import Iterable
15+
from typing import TYPE_CHECKING, Any
1716

1817
import numpy as np
1918

monai/apps/pathology/transforms/post/array.py

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

1414
import warnings
15-
from typing import Callable
16-
1715
from collections.abc import Sequence
16+
from typing import Callable
1817

1918
import numpy as np
2019
import torch

monai/bundle/reference_resolver.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313

1414
import re
1515
import warnings
16-
from collections.abc import Sequence
16+
from collections.abc import Iterator, Sequence
1717
from typing import Any
1818

19-
from collections.abc import Iterator
20-
2119
from monai.bundle.config_item import ConfigComponent, ConfigExpression, ConfigItem
2220
from monai.bundle.utils import DEPRECATED_ID_MAPPING, ID_REF_KEY, ID_SEP_KEY
2321
from monai.utils import allow_missing_reference, look_up_option

monai/bundle/workflows.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
import sys
1717
import time
1818
from abc import ABC, abstractmethod
19+
from collections.abc import Sequence
1920
from copy import copy
2021
from logging.config import fileConfig
2122
from pathlib import Path
2223
from typing import Any
2324

24-
from collections.abc import Sequence
25-
2625
from monai.apps.utils import get_logger
2726
from monai.bundle.config_parser import ConfigParser
2827
from monai.bundle.properties import InferProperties, MetaProperties, TrainProperties

monai/config/type_definitions.py

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

1414
import os
15-
from typing import TypeVar, Union
16-
1715
from collections.abc import Collection, Hashable, Iterable, Sequence
16+
from typing import TypeVar, Union
1817

1918
import numpy as np
2019
import torch

0 commit comments

Comments
 (0)