Skip to content

Commit a48d43b

Browse files
committed
Add missing Self import
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 0552e97 commit a48d43b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frequenz/sdk/timeseries/battery_pool/_component_metric_fetcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import math
1111
from abc import ABC, abstractmethod
1212
from datetime import datetime, timezone
13-
from typing import Any, Generic, Iterable, Optional, Set, TypeVar
13+
from typing import Any, Generic, Iterable, Optional, Self, Set, TypeVar
1414

1515
from frequenz.channels import ChannelClosedError, Receiver
1616

@@ -44,7 +44,7 @@ class ComponentMetricFetcher(AsyncConstructible, ABC):
4444
@classmethod
4545
async def async_new(
4646
cls, component_id: int, metrics: Iterable[ComponentMetricId]
47-
) -> Self: # type: ignore[name-defined] # pylint: disable=undefined-variable
47+
) -> Self:
4848
"""Create an instance of this class.
4949
5050
Subscribe for the given component metrics and return them if method
@@ -78,7 +78,7 @@ async def async_new(
7878
cls,
7979
component_id: int,
8080
metrics: Iterable[ComponentMetricId],
81-
) -> Self: # type: ignore[name-defined] # pylint: disable=undefined-variable:
81+
) -> Self:
8282
"""Create instance of this class.
8383
8484
Subscribe for the requested component data and fetch only the latest component

0 commit comments

Comments
 (0)