Skip to content

Commit

Permalink
Fix small typing issue in data blob table
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlefs committed Dec 19, 2023
1 parent 4c3a907 commit 8955ebc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qhana_plugin_runner/db/models/virtual_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 8955ebc

Please sign in to comment.