Skip to content

Commit

Permalink
Force Entity.custom_properties to be a keyword argument
Browse files Browse the repository at this point in the history
We do not want custom_properties to be set exidentially,
so the parameter should be named.
  • Loading branch information
p-snft committed Oct 19, 2023
1 parent a7426f1 commit a1d53e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oemof/network/network/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Entity:
"custom_properties",
]

def __init__(self, label=None, custom_properties=None, **kwargs):
def __init__(self, label=None, *, custom_properties=None, **kwargs):
self._label = label
if custom_properties is None:
custom_properties = {}
Expand Down

0 comments on commit a1d53e1

Please sign in to comment.