Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Oct 11, 2023
1 parent 36e327c commit e9f3105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oemof/network/network/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, *args, **kwargs):
class Bus(Node):
def __init__(self, *args, **kwargs):
warnings.warn(
_deprecation_warning.format(type(self)),
_deprecation_warning.format("oemof.network.Bus"),
FutureWarning,
)
super().__init__(*args, **kwargs)
Expand All @@ -87,7 +87,7 @@ def __init__(self, *args, **kwargs):
class Component(Node):
def __init__(self, *args, **kwargs):
warnings.warn(
_deprecation_warning.format(type(self)),
_deprecation_warning.format("oemof.network.Component"),
FutureWarning,
)
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit e9f3105

Please sign in to comment.