Skip to content

Commit 7097b3d

Browse files
committed
Import Callable and Hashable from collections.abc
Importing those symbols from `typing` is deprecated. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 082bee9 commit 7097b3d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/frequenz/channels/experimental/_grouping_latest_value_cache.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@
55

66

77
import asyncio
8-
from collections.abc import Callable, ItemsView, Iterator, KeysView, Mapping, ValuesView
9-
from typing import Hashable, TypeVar, overload
8+
from collections.abc import (
9+
Callable,
10+
Hashable,
11+
ItemsView,
12+
Iterator,
13+
KeysView,
14+
Mapping,
15+
ValuesView,
16+
)
17+
from typing import TypeVar, overload
1018

1119
from typing_extensions import override
1220

src/frequenz/channels/experimental/_with_previous.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"""Composable predicate to cache and compare with the previous message."""
55

66

7-
from typing import Callable, Final, Generic, TypeGuard
7+
from collections.abc import Callable
8+
from typing import Final, Generic, TypeGuard
89

910
from frequenz.channels._generic import ChannelMessageT
1011

0 commit comments

Comments
 (0)