Skip to content

Commit 69e93b7

Browse files
committed
Import module from typing
Makes the code a bit less verbose, and the types are very well known, so the origin is obvious. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 7d1007b commit 69e93b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/timeseries/mock_microgrid.py

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

66

77
import asyncio
8-
import typing
98
from collections.abc import Callable
109
from datetime import datetime, timedelta, timezone
10+
from typing import Coroutine
1111

1212
from pytest_mock import MockerFixture
1313

@@ -151,7 +151,7 @@ def inverters(comp_type: InverterType) -> list[int]:
151151
self.evc_component_states: dict[int, EVChargerComponentState] = {}
152152
self.evc_cable_states: dict[int, EVChargerCableState] = {}
153153

154-
self._streaming_coros: list[typing.Coroutine[None, None, None]] = []
154+
self._streaming_coros: list[Coroutine[None, None, None]] = []
155155
self._streaming_tasks: list[asyncio.Task[None]] = []
156156

157157
if grid_meter:

0 commit comments

Comments
 (0)