Skip to content

Commit 4fc0809

Browse files
author
Taniya Mathur
committed
Fix type checking error for DynamoDB table access
1 parent 6596fa6 commit 4fc0809

File tree

1 file changed

+1
-1
lines changed
  • src/lambda/test_results_resolver

1 file changed

+1
-1
lines changed

src/lambda/test_results_resolver/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def handle_cache_update_request(event, context):
7777
'costBreakdown': aggregated_metrics.get('cost_breakdown', {})
7878
}
7979

80-
table = dynamodb.Table(os.environ['TRACKING_TABLE'])
80+
table = dynamodb.Table(os.environ['TRACKING_TABLE']) # type: ignore[attr-defined]
8181
table.update_item(
8282
Key={'PK': f'testrun#{test_run_id}', 'SK': 'metadata'},
8383
UpdateExpression='SET testRunResult = :metrics',

0 commit comments

Comments
 (0)