Skip to content

Commit

Permalink
Adhere to Black
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Dec 19, 2023
1 parent 12b665a commit 384d164
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/oemof/network/network/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __lt__(self, other):
def __hash__(self):
return hash(self.label)


def __str__(self):
return str(self.label)

Expand All @@ -78,11 +77,7 @@ def label(self):
`node.label` is a synonym for `str(node)`.
"""
try:
return (
self._label
if self._label is not None
else self._id_label
)
return self._label if self._label is not None else self._id_label
except AttributeError:
return hash(self._id_label)

Expand Down

0 comments on commit 384d164

Please sign in to comment.