project: Fix deprecated-import for Iterable (UP035)
Derived from pyupgrade, see https://docs.astral.sh/ruff/rules/deprecated-import/ Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
d1b3f698ca
commit
66f25ec5dd
|
@ -40,7 +40,8 @@ import os
|
|||
from pathlib import PureWindowsPath, Path
|
||||
import platform
|
||||
from enum import Enum
|
||||
from typing import Any, Iterable, Optional, TYPE_CHECKING, Union
|
||||
from typing import Any, Optional, TYPE_CHECKING, Union
|
||||
from collections.abc import Iterable
|
||||
import warnings
|
||||
|
||||
from west.util import WEST_DIR, west_dir, WestNotFound, PathType
|
||||
|
|
|
@ -17,8 +17,9 @@ import re
|
|||
import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
from typing import Any, Callable, Iterable, NoReturn, \
|
||||
from typing import Any, Callable, NoReturn, \
|
||||
NamedTuple, Optional, TYPE_CHECKING, Union
|
||||
from collections.abc import Iterable
|
||||
|
||||
from packaging.version import parse as parse_version
|
||||
import pykwalify.core
|
||||
|
|
Loading…
Reference in New Issue