Skip to content

Commit 74a70ad

Browse files
committed
fixup lifetime
1 parent a2c2e9f commit 74a70ad

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/frequenz/client/microgrid/_lifetime.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@ def __post_init__(self) -> None:
3737
raise ValueError("Start must be before or equal to end.")
3838

3939
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-
"""
40+
"""Check whether this lifetime is active at a specific timestamp."""
4841
if self.start is not None and self.start > timestamp:
4942
return False
5043
if self.end is not None:

0 commit comments

Comments
 (0)