Skip to content

Commit c72f3f3

Browse files
committed
Ignore unused import error
These imports are used to break circular imports in a very convoluted set of circular dependencies. To do that some types need to be specified as strings and use `typing.TYPE_CHECKING` to conditionally add imports, and it seems like flake8 doesn't detect those strings as types being used. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 3c00398 commit c72f3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/sdk/microgrid/_data_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
DataSourcingActor,
3434
ResamplerConfig,
3535
)
36-
from ..actor.power_distributing import (
36+
from ..actor.power_distributing import ( # noqa: F401 (imports used by string type hints)
3737
BatteryStatus,
3838
PowerDistributingActor,
3939
Request,

0 commit comments

Comments
 (0)