You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
props: GetItemInputRequestTypeDef= {"Key": key, "ReturnConsumedCapacity": "NONE"}# type: ignore # we modify use of this type (no table name is needed here)
68
68
69
69
ifattrsisnotNone:
70
70
props["ProjectionExpression"] =attrs
71
71
72
-
response=table.get_item(**props)
72
+
response=table.get_item(**props)# type: ignore # pylance complains about extra fields
73
73
74
74
logger.info("Response from table.get_item: %s", response)
75
75
@@ -79,8 +79,8 @@ def table_get_item(
79
79
deftable_get_items(
80
80
table_name: str,
81
81
keys: List[Mapping[str, Any]],
82
-
attrs: str=None,
83
-
region: str=None,
82
+
attrs: Optional[str]=None,
83
+
region: Optional[str]=None,
84
84
) ->List[Dict[str, Any]]:
85
85
db=get_dynamodb_client(region=region)
86
86
serializer=TypeSerializer()
@@ -183,7 +183,7 @@ def table_query(
183
183
key_condition_expression: ConditionBase,
184
184
index_name: Optional[str] =None,
185
185
filter_expression: Optional[ConditionBase] =None,
186
-
region: str=None,
186
+
region: Optional[str]=None,
187
187
consistent_read: bool=False,
188
188
) ->List[Dict[str, Any]]:
189
189
"""Query a table
@@ -252,7 +252,7 @@ def table_query(
252
252
items: List[Dict[str, Any]] = []
253
253
paginator=db.get_paginator("query")
254
254
logger.info(f"Performing DB 'query' on {table.name} with following parameters: {db_request}")
0 commit comments