We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Connection
dataclass
1 parent b852302 commit 43d54e6Copy full SHA for 43d54e6
src/frequenz/client/microgrid/_connection.py
@@ -3,10 +3,12 @@
3
4
"""Defines the connections between microgrid components."""
5
6
-from typing import NamedTuple
7
+from dataclasses import dataclass
8
9
-class Connection(NamedTuple):
+
10
+@dataclass(frozen=True)
11
+class Connection:
12
"""Metadata for a connection between microgrid components."""
13
14
start: int
0 commit comments