Skip to content

Commit 4f4af2c

Browse files
committed
Upgrade pydoctor and fix nexus docs
1 parent 90dda94 commit 4f4af2c

File tree

4 files changed

+38
-22
lines changed

4 files changed

+38
-22
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dev = [
4444
"mypy-protobuf>=3.3.0,<4",
4545
"psutil>=5.9.3,<6",
4646
"pydocstyle>=6.3.0,<7",
47-
"pydoctor>=24.11.1,<25",
47+
"pydoctor>=25.10.1,<26",
4848
"pyright==1.1.403",
4949
"pytest~=7.4",
5050
"pytest-asyncio>=0.21,<0.22",

temporalio/nexus/__init__.py

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,28 @@
66
See https://github.com/temporalio/sdk-python/tree/main#nexus
77
"""
88

9-
from ._decorators import workflow_run_operation as workflow_run_operation
10-
from ._operation_context import Info as Info
11-
from ._operation_context import LoggerAdapter as LoggerAdapter
12-
from ._operation_context import NexusCallback as NexusCallback
9+
from ._decorators import workflow_run_operation
1310
from ._operation_context import (
14-
WorkflowRunOperationContext as WorkflowRunOperationContext,
11+
Info,
12+
LoggerAdapter,
13+
NexusCallback,
14+
WorkflowRunOperationContext,
15+
client,
16+
in_operation,
17+
info,
18+
logger,
19+
)
20+
from ._token import WorkflowHandle
21+
22+
__all__ = (
23+
"workflow_run_operation",
24+
"Info",
25+
"LoggerAdapter",
26+
"NexusCallback",
27+
"WorkflowRunOperationContext",
28+
"client",
29+
"in_operation",
30+
"info",
31+
"logger",
32+
"WorkflowHandle",
1533
)
16-
from ._operation_context import client as client
17-
from ._operation_context import in_operation as in_operation
18-
from ._operation_context import info as info
19-
from ._operation_context import logger as logger
20-
from ._token import WorkflowHandle as WorkflowHandle

temporalio/nexus/_operation_context.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
2323
import temporalio.api.common.v1
2424
import temporalio.api.workflowservice.v1
2525
import temporalio.common
26-
from temporalio.nexus import _link_conversion
27-
from temporalio.nexus._token import WorkflowHandle
26+
from ._link_conversion import (
27+
nexus_link_to_workflow_event,
28+
workflow_execution_started_event_link_from_workflow_handle,
29+
workflow_event_to_nexus_link,
30+
)
31+
from ._token import WorkflowHandle
2832
from temporalio.types import (
2933
MethodAsyncNoParam,
3034
MethodAsyncSingleParam,
@@ -162,7 +166,7 @@ def _get_workflow_event_links(
162166
) -> list[temporalio.api.common.v1.Link.WorkflowEvent]:
163167
event_links = []
164168
for inbound_link in self.nexus_context.inbound_links:
165-
if link := _link_conversion.nexus_link_to_workflow_event(inbound_link):
169+
if link := nexus_link_to_workflow_event(inbound_link):
166170
event_links.append(link)
167171
return event_links
168172

@@ -182,14 +186,13 @@ def _add_outbound_links(
182186
wf_event_links.append(link.workflow_event)
183187
if not wf_event_links:
184188
wf_event_links = [
185-
_link_conversion.workflow_execution_started_event_link_from_workflow_handle(
189+
workflow_execution_started_event_link_from_workflow_handle(
186190
workflow_handle,
187191
self.nexus_context.request_id,
188192
)
189193
]
190194
self.nexus_context.outbound_links.extend(
191-
_link_conversion.workflow_event_to_nexus_link(link)
192-
for link in wf_event_links
195+
workflow_event_to_nexus_link(link) for link in wf_event_links
193196
)
194197
except Exception as e:
195198
logger.warning(

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)