From 8955ebcb38bf30115570f0d21d75bf199ac1e663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20B=C3=BChler?= <17296905+buehlefs@users.noreply.github.com> Date: Tue, 19 Dec 2023 10:40:30 +0100 Subject: [PATCH] Fix small typing issue in data blob table --- qhana_plugin_runner/db/models/virtual_plugins.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qhana_plugin_runner/db/models/virtual_plugins.py b/qhana_plugin_runner/db/models/virtual_plugins.py index f732807d3..7e9b05370 100644 --- a/qhana_plugin_runner/db/models/virtual_plugins.py +++ b/qhana_plugin_runner/db/models/virtual_plugins.py @@ -27,9 +27,9 @@ select, ) -from .mutable_json import JSON_LIKE, MutableJSON -from ..db import DB, DB_SIGNALS, REGISTRY from ...util.plugins import plugin_identifier +from ..db import DB, DB_SIGNALS, REGISTRY +from .mutable_json import JSON_LIKE, MutableJSON VIRTUAL_PLUGIN_CREATED = DB_SIGNALS.signal("virtual-plugin_created") VIRTUAL_PLUGIN_REMOVED = DB_SIGNALS.signal("virtual-plugin_removed") @@ -301,7 +301,7 @@ def get_value(cls, plugin_id: str, key: str, default: Any = ...) -> bytes: KeyError: if the key was not found and no default value was provided Returns: - bytes: the stored state value + bytes: the stored state value, or the default value """ q: Select = select(cls) q = q.filter(cls.plugin_id == plugin_id, cls.key == key) @@ -316,7 +316,7 @@ def get_value(cls, plugin_id: str, key: str, default: Any = ...) -> bytes: @classmethod def set_value( cls, plugin_id: str, key: str, value: bytes, commit: bool = False - ) -> bytes: + ) -> Optional[bytes]: """Set state for a given key. Args: