Skip to content

Commit 008cbc8

Browse files
committed
Aggregate workflow exports
1 parent a371d3e commit 008cbc8

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ exclude = [
238238
[tool.ruff]
239239
target-version = "py39"
240240

241+
[tool.ruff.lint.per-file-ignores]
242+
"temporalio/workflow/__init__.py" = ["F403"]
243+
241244
[build-system]
242245
requires = ["maturin>=1.0,<2.0"]
243246
build-backend = "maturin"

temporalio/workflow/__init__.py

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
# ruff: noqa: F401, F403
2-
31
"""Utilities that can decorate or be called inside workflows."""
42

53
from __future__ import annotations
64

5+
from . import (
6+
_activities,
7+
_asyncio,
8+
_context,
9+
_definition,
10+
_exceptions,
11+
_handlers,
12+
_nexus,
13+
_sandbox,
14+
_workflow_ops,
15+
)
716
from ._activities import *
817
from ._activities import _AsyncioTask as _AsyncioTask
918
from ._asyncio import *
@@ -40,3 +49,39 @@
4049
)
4150
from ._sandbox import _sandbox_unrestricted as _sandbox_unrestricted
4251
from ._workflow_ops import *
52+
53+
__all__: list[str] = []
54+
__all__ += _activities.__all__
55+
__all__ += _asyncio.__all__
56+
__all__ += _context.__all__
57+
__all__ += _definition.__all__
58+
__all__ += _exceptions.__all__
59+
__all__ += _handlers.__all__
60+
__all__ += _nexus.__all__
61+
__all__ += _sandbox.__all__
62+
__all__ += _workflow_ops.__all__
63+
__all__ += [
64+
"_AsyncioTask",
65+
"_FT",
66+
"_release_waiter",
67+
"_wait",
68+
"_current_update_info",
69+
"_Runtime",
70+
"_set_current_update_info",
71+
"_Definition",
72+
"_is_unbound_method_on_cls",
73+
"_parameters_identical_up_to_naming",
74+
"_NotInWorkflowEventLoopError",
75+
"_assert_dynamic_handler_args",
76+
"_bind_method",
77+
"_QueryDefinition",
78+
"_SignalDefinition",
79+
"_update_validator",
80+
"_UpdateDefinition",
81+
"_NexusClient",
82+
"_build_log_context",
83+
"_imports_passed_through",
84+
"_in_sandbox",
85+
"_sandbox_import_notification_policy_override",
86+
"_sandbox_unrestricted",
87+
]

0 commit comments

Comments
 (0)