Skip to content

Commit

Permalink
Don't import directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushisource committed Jul 11, 2023
1 parent 4a0366b commit 29bd7a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions temporalio/worker/_workflow_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import temporalio.exceptions
import temporalio.workflow

from ..workflow import VersioningIntent
from ._interceptor import (
ContinueAsNewInput,
ExecuteWorkflowInput,
Expand Down Expand Up @@ -670,7 +669,7 @@ def workflow_continue_as_new(
retry_policy: Optional[temporalio.common.RetryPolicy],
memo: Optional[Mapping[str, Any]],
search_attributes: Optional[temporalio.common.SearchAttributes],
versioning_intent: Optional[VersioningIntent],
versioning_intent: Optional[temporalio.workflow.VersioningIntent],
) -> NoReturn:
# Use definition if callable
name: Optional[str] = None
Expand Down Expand Up @@ -823,7 +822,7 @@ def workflow_start_activity(
retry_policy: Optional[temporalio.common.RetryPolicy],
cancellation_type: temporalio.workflow.ActivityCancellationType,
activity_id: Optional[str],
versioning_intent: Optional[VersioningIntent],
versioning_intent: Optional[temporalio.workflow.VersioningIntent],
) -> temporalio.workflow.ActivityHandle[Any]:
# Get activity definition if it's callable
name: str
Expand Down Expand Up @@ -876,7 +875,7 @@ async def workflow_start_child_workflow(
cron_schedule: str,
memo: Optional[Mapping[str, Any]],
search_attributes: Optional[temporalio.common.SearchAttributes],
versioning_intent: Optional[VersioningIntent],
versioning_intent: Optional[temporalio.workflow.VersioningIntent],
) -> temporalio.workflow.ChildWorkflowHandle[Any, Any]:
# Use definition if callable
name: str
Expand Down

0 comments on commit 29bd7a6

Please sign in to comment.