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.
1 parent a2c2e9f commit 74a70adCopy full SHA for 74a70ad
src/frequenz/client/microgrid/_lifetime.py
@@ -37,14 +37,7 @@ def __post_init__(self) -> None:
37
raise ValueError("Start must be before or equal to end.")
38
39
def active_at(self, timestamp: datetime) -> bool:
40
- """Check whether this lifetime is active at a specific timestamp.
41
-
42
- Args:
43
- timestamp: The timestamp to check activity for.
44
45
- Returns:
46
- True if active at the given timestamp, False otherwise.
47
- """
+ """Check whether this lifetime is active at a specific timestamp."""
48
if self.start is not None and self.start > timestamp:
49
return False
50
if self.end is not None:
0 commit comments