Skip to content

Commit 6beb550

Browse files
FullyTypedAstraea Quinn S
authored andcommitted
Fixup: type annotations for python3.11
1 parent 8bdb236 commit 6beb550

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/aws_durable_execution_sdk_python/lambda_service.py

Lines changed: 6 additions & 5 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
9+
from typing import TYPE_CHECKING, Any, Protocol, TypeAlias
1010

1111
import boto3 # type: ignore
1212

@@ -20,11 +20,12 @@
2020

2121
from aws_durable_execution_sdk_python.identifier import OperationIdentifier
2222

23-
logger = logging.getLogger(__name__)
23+
ReplayChildren: TypeAlias = bool # noqa UP040 ignore due to python3.11 minimum version
24+
OperationPayload: TypeAlias = str # noqa UP040 ignore due to python3.11 minimum version
25+
TimeoutSeconds: TypeAlias = int # noqa UP040 ignore due to python3.11 minimum version
26+
2427

25-
type ReplayChildren = bool
26-
type OperationPayload = str
27-
type TimeoutSeconds = int
28+
logger = logging.getLogger(__name__)
2829

2930

3031
# region model

0 commit comments

Comments
 (0)