Skip to content

Commit fbd96b9

Browse files
FullyTypedAstraea Quinn S
authored andcommitted
[Chore] CI fixes
Formatting etc
1 parent 4db9aa5 commit fbd96b9

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/aws_durable_execution_sdk_python/lambda_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from dataclasses import dataclass, field
77
from enum import Enum
88
from pathlib import Path
9-
from typing import TYPE_CHECKING, Any, Protocol, TypeAlias
9+
from typing import TYPE_CHECKING, Any, Protocol
1010

1111
import boto3 # type: ignore
1212

@@ -22,9 +22,9 @@
2222

2323
logger = logging.getLogger(__name__)
2424

25-
ReplayChildren: TypeAlias = bool
26-
OperationPayload: TypeAlias = str
27-
TimeoutSeconds: TypeAlias = int
25+
type ReplayChildren = bool
26+
type OperationPayload = str
27+
type TimeoutSeconds = int
2828

2929

3030
# region model

tests/lambda_service_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
from aws_durable_execution_sdk_python.lambda_service import (
1414
CallbackDetails,
1515
CallbackOptions,
16+
ChainedInvokeDetails,
17+
ChainedInvokeOptions,
1618
CheckpointOutput,
1719
CheckpointUpdatedExecutionState,
1820
ContextDetails,
1921
ContextOptions,
2022
DurableServiceClient,
2123
ErrorObject,
2224
ExecutionDetails,
23-
ChainedInvokeDetails,
24-
ChainedInvokeOptions,
2525
LambdaClient,
2626
Operation,
2727
OperationAction,
@@ -358,7 +358,7 @@ def test_invoke_details_minimal():
358358
"""Test ChainedInvokeDetails.from_dict with minimal required data."""
359359
data = {"DurableExecutionArn": "arn:minimal"}
360360
details = ChainedInvokeDetails.from_dict(data)
361-
assert hasattr(details, "durable_execution_arn") == False
361+
assert hasattr(details, "durable_execution_arn") is False
362362
assert details.result is None
363363
assert details.error is None
364364

tests/operation/invoke_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
)
1717
from aws_durable_execution_sdk_python.identifier import OperationIdentifier
1818
from aws_durable_execution_sdk_python.lambda_service import (
19-
ErrorObject,
2019
ChainedInvokeDetails,
20+
ErrorObject,
2121
Operation,
2222
OperationAction,
2323
OperationStatus,

tests/state_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from aws_durable_execution_sdk_python.exceptions import DurableExecutionsError
88
from aws_durable_execution_sdk_python.lambda_service import (
99
CallbackDetails,
10+
ChainedInvokeDetails,
1011
CheckpointOutput,
1112
CheckpointUpdatedExecutionState,
1213
ErrorObject,
13-
ChainedInvokeDetails,
1414
LambdaClient,
1515
Operation,
1616
OperationAction,
@@ -520,9 +520,9 @@ def test_checkpointed_result_is_timed_out_false_for_other_statuses():
520520
status=status,
521521
)
522522
result = CheckpointedResult.create_from_operation(operation)
523-
assert result.is_timed_out() is False, (
524-
f"is_timed_out should be False for status {status}"
525-
)
523+
assert (
524+
result.is_timed_out() is False
525+
), f"is_timed_out should be False for status {status}"
526526

527527

528528
def test_fetch_paginated_operations_with_marker():

0 commit comments

Comments
 (0)