Skip to content

Commit

Permalink
Improve typing
Browse files Browse the repository at this point in the history
  • Loading branch information
olethanh committed Nov 14, 2024
1 parent 31c41ed commit 0a4b2d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aleph/vm/orchestrator/custom_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from contextvars import ContextVar

from aleph.vm.models import VmExecution
from aleph_message.models import ItemHash

ctx_current_execution = ContextVar("current_execution")
ctx_current_execution_hash = ContextVar("current_execution_hash")
ctx_current_execution: ContextVar[VmExecution | None] = ContextVar("current_execution")
ctx_current_execution_hash: ContextVar[ItemHash | None] = ContextVar("current_execution_hash")


@contextlib.contextmanager
Expand Down

0 comments on commit 0a4b2d6

Please sign in to comment.