Skip to content

Commit 9c975f3

Browse files
committed
fix some naming and typos
1 parent f4dc5a6 commit 9c975f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

temporalio/worker/workflow_sandbox/_importer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _import(
204204
# Issue a warning if appropriate
205205
if (
206206
self.restriction_context.in_activation
207-
and self._is_import_policy_applied(
207+
and self._is_import_notification_policy_applied(
208208
temporalio.workflow.SandboxImportNotificationPolicy.WARN_ON_DYNAMIC_IMPORT
209209
)
210210
):
@@ -294,7 +294,7 @@ def module_configured_passthrough(self, name: str) -> bool:
294294
break
295295
return True
296296

297-
def _is_import_policy_applied(
297+
def _is_import_notification_policy_applied(
298298
self, policy: temporalio.workflow.SandboxImportNotificationPolicy
299299
) -> bool:
300300
applied_policy = (
@@ -312,12 +312,12 @@ def _maybe_passthrough_module(self, name: str) -> Optional[types.ModuleType]:
312312
not temporalio.workflow.unsafe.is_imports_passed_through()
313313
and not self.module_configured_passthrough(name)
314314
):
315-
if self._is_import_policy_applied(
315+
if self._is_import_notification_policy_applied(
316316
temporalio.workflow.SandboxImportNotificationPolicy.RAISE_ON_UNINTENTIONAL_PASSTHROUGH
317317
):
318318
raise DisallowedUnintentionalPassthroughError(name)
319319

320-
if self._is_import_policy_applied(
320+
if self._is_import_notification_policy_applied(
321321
temporalio.workflow.SandboxImportNotificationPolicy.WARN_ON_UNINTENTIONAL_PASSTHROUGH
322322
):
323323
warnings.warn(

temporalio/worker/workflow_sandbox/_restrictions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103

104104
@staticmethod
105105
def default_message(qualified_name: str) -> str:
106-
"""Get default message for disallowed unintential passthrough."""
106+
"""Get default message for disallowed unintentional passthrough."""
107107
return f"Module {qualified_name} was not intentionally passed through to the sandbox."
108108

109109

0 commit comments

Comments
 (0)