Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nailend committed Aug 7, 2023
1 parent 268db13 commit 3838a22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/oemof/solph/_plumbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class _Sequence(UserList):
"""Emulates a list whose length is not known in advance if default
is passed. If periodic_values and highest_index are passed, the length
is known in advance and the sequence is periodic. The periods will have
the values passed in periodic_values and the lengths of the periods are equal
and sum up to the value of highest_index.
the values passed in periodic_values and the lengths of the periods are
equal and sum up to the value of highest_index.
Parameters
----------
Expand Down Expand Up @@ -145,7 +145,9 @@ def __init__(
self.default_changed = False
self.highest_index = highest_index
self.period_length = (
int(highest_index / len(periodic_values)) if periodic_values else None
int(highest_index / len(periodic_values))
if periodic_values
else None
)
super().__init__(*args)

Expand Down

0 comments on commit 3838a22

Please sign in to comment.