Skip to content

Commit fea2085

Browse files
hjmjohnsonclaude
andcommitted
STYLE: Remove unused typing imports after pyupgrade modernization
Remove Union and Optional imports that are no longer referenced after pyupgrade converted type annotations to PEP 604 syntax (X | Y). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9f9b850 commit fea2085

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

Wrapping/Generators/Python/itk/pyi_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from io import StringIO
1111
from pathlib import Path, PurePath
1212
import pickle
13-
from typing import Union
1413
import glob
1514
import re
1615
from collections import defaultdict

Wrapping/Generators/Python/itk/support/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from sys import stderr as system_error_stream
2222

2323
# Required to work around weird import error with xarray
24-
from typing import Any, Optional, Union
24+
from typing import Any
2525
from collections.abc import Sequence
2626

2727
import itkConfig

Wrapping/Generators/Python/itk/support/init_helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from sys import stderr as _system_error_stream
22
from enum import IntEnum, unique
3-
from typing import Union
43

54
__all__ = [
65
"auto_not_in_place",

Wrapping/Generators/Python/itk/support/template_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import types
2424
import collections
2525
import warnings
26-
from typing import Any, Union
26+
from typing import Any
2727
from collections.abc import Callable
2828

2929
import itkConfig

0 commit comments

Comments
 (0)