Skip to content

Commit 2f97cb2

Browse files
committed
repo: Import Callable from collections.abc instead of typing
Fix a deprecated import for Callable (ruff UP035) Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 8975bd7 commit 2f97cb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/west/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
import sys
1515
from abc import ABC, abstractmethod
1616
from collections import OrderedDict
17+
from collections.abc import Callable
1718
from dataclasses import dataclass
1819
from enum import IntEnum
1920
from pathlib import Path
2021
from types import ModuleType
21-
from typing import Callable, NoReturn
22+
from typing import NoReturn
2223

2324
import colorama
2425
import pykwalify

src/west/manifest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import subprocess
1717
import sys
1818
from collections import deque
19-
from collections.abc import Iterable
19+
from collections.abc import Callable, Iterable
2020
from pathlib import Path, PurePosixPath
21-
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, NoReturn
21+
from typing import TYPE_CHECKING, Any, NamedTuple, NoReturn
2222

2323
import pykwalify.core
2424
import yaml

0 commit comments

Comments
 (0)