add tyoing
This commit is contained in:
@@ -589,7 +589,7 @@ class DynamoDBPersistenceLayer:
|
|||||||
def transact_get_items(self, transact_items: TransactItems) -> list[dict[str, Any]]:
|
def transact_get_items(self, transact_items: TransactItems) -> list[dict[str, Any]]:
|
||||||
try:
|
try:
|
||||||
response = self.dynamodb_client.transact_get_items(
|
response = self.dynamodb_client.transact_get_items(
|
||||||
TransactItems=transact_items.items
|
TransactItems=transact_items.items # type: ignore
|
||||||
)
|
)
|
||||||
except ClientError as err:
|
except ClientError as err:
|
||||||
logger.exception(err)
|
logger.exception(err)
|
||||||
@@ -603,7 +603,7 @@ class DynamoDBPersistenceLayer:
|
|||||||
def transact_write_items(self, transact_items: TransactItems) -> bool:
|
def transact_write_items(self, transact_items: TransactItems) -> bool:
|
||||||
try:
|
try:
|
||||||
self.dynamodb_client.transact_write_items(
|
self.dynamodb_client.transact_write_items(
|
||||||
TransactItems=transact_items.items
|
TransactItems=transact_items.items # type: ignore
|
||||||
)
|
)
|
||||||
except ClientError as err:
|
except ClientError as err:
|
||||||
logger.exception(err)
|
logger.exception(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user