Skip to content

Commit b6e084d

Browse files
committed
Don't expose underscore-prefixed context variables
1 parent 12f98a1 commit b6e084d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

temporalio/nexus/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
from ._operation_context import (
55
WorkflowRunOperationContext as WorkflowRunOperationContext,
66
)
7-
from ._operation_context import (
8-
_TemporalCancelOperationContext as _TemporalCancelOperationContext,
9-
)
10-
from ._operation_context import (
11-
_TemporalStartOperationContext as _TemporalStartOperationContext,
12-
)
137
from ._operation_context import client as client
148
from ._operation_context import in_operation as in_operation
159
from ._operation_context import info as info

temporalio/worker/_nexus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async def _handle_cancel_operation_task(
172172
operation=request.operation,
173173
headers=headers,
174174
)
175-
temporalio.nexus._TemporalCancelOperationContext(
175+
temporalio.nexus._operation_context._TemporalCancelOperationContext(
176176
info=lambda: Info(task_queue=self._task_queue),
177177
nexus_context=ctx,
178178
client=self._client,
@@ -274,7 +274,7 @@ async def _start_operation(
274274
],
275275
callback_headers=dict(start_request.callback_header),
276276
)
277-
temporalio.nexus._TemporalStartOperationContext(
277+
temporalio.nexus._operation_context._TemporalStartOperationContext(
278278
nexus_context=ctx,
279279
client=self._client,
280280
info=lambda: Info(task_queue=self._task_queue),

0 commit comments

Comments
 (0)