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:
Pieter De Gendt 2024-11-04 09:28:29 +01:00 committed by Pieter De Gendt
parent d1b3f698ca
commit 66f25ec5dd
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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