From e9f3105d88dcb6f30e03113f60bb5ed76b264dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sch=C3=B6nfeldt?= Date: Wed, 11 Oct 2023 11:41:50 +0200 Subject: [PATCH] Fix deprecation warnings --- src/oemof/network/network/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oemof/network/network/nodes.py b/src/oemof/network/network/nodes.py index 3cb72fa..7438c8c 100644 --- a/src/oemof/network/network/nodes.py +++ b/src/oemof/network/network/nodes.py @@ -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) @@ -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)