Annotate the boto3 client and resource parameters of the exercises and their solutions with boto3-stubs types, so VS Code autocompletes methods and arguments.
boto3-stubs added as a dev dependency (pyproject.toml, uv.lock), for the 28 services the course uses.
Client parameters typed with their stub type (S3Client, SQSClient, DynamoDBClient, CognitoIdentityProviderClient…), DynamoDB tables with Table, the X-Ray recorder with AWSXRayRecorder. get_table() / make_dynamodb_client() get return types.
Lambda handler(event, context) and the test doubles (fake db, cache, clocks) are left untyped.
Found while typing (not fixed here): the xray_1 solution calls subsegment.add_exception(exc), but the real X-Ray SDK signature is add_exception(exception, stack, remote=False). It passes only because the test fake accepts one argument.
Annotate the boto3 client and resource parameters of the exercises and their solutions with boto3-stubs types, so VS Code autocompletes methods and arguments.
- `boto3-stubs` added as a dev dependency (`pyproject.toml`, `uv.lock`), for the 28 services the course uses.
- Client parameters typed with their stub type (`S3Client`, `SQSClient`, `DynamoDBClient`, `CognitoIdentityProviderClient`…), DynamoDB tables with `Table`, the X-Ray recorder with `AWSXRayRecorder`. `get_table()` / `make_dynamodb_client()` get return types.
- Lambda `handler(event, context)` and the test doubles (fake db, cache, clocks) are left untyped.
- Tests sections unchanged.
Checks: `awslings validate` ✔ (83 exercises, 408 questions) · `scripts/check_exercises.py` 83/83 · `pytest` 113 passed.
Found while typing (not fixed here): the `xray_1` solution calls `subsegment.add_exception(exc)`, but the real X-Ray SDK signature is `add_exception(exception, stack, remote=False)`. It passes only because the test fake accepts one argument.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Annotate client and resource parameters with boto3-stubs types (S3Client,
SQSClient, Table, ...) so VS Code autocompletes methods and arguments,
as in iam_3. Finished exercises (intro_1-2, iam_1-3) are left as the
learner wrote them. Tests sections are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The learner's branch already typed its own copy; this gives main's
untouched exercise the same signature as the solution.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nessar
merged commit 25d5c3727e into main2026-10-31 20:58:51 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Annotate the boto3 client and resource parameters of the exercises and their solutions with boto3-stubs types, so VS Code autocompletes methods and arguments.
boto3-stubsadded as a dev dependency (pyproject.toml,uv.lock), for the 28 services the course uses.S3Client,SQSClient,DynamoDBClient,CognitoIdentityProviderClient…), DynamoDB tables withTable, the X-Ray recorder withAWSXRayRecorder.get_table()/make_dynamodb_client()get return types.handler(event, context)and the test doubles (fake db, cache, clocks) are left untyped.Checks:
awslings validate✔ (83 exercises, 408 questions) ·scripts/check_exercises.py83/83 ·pytest113 passed.Found while typing (not fixed here): the
xray_1solution callssubsegment.add_exception(exc), but the real X-Ray SDK signature isadd_exception(exception, stack, remote=False). It passes only because the test fake accepts one argument.🤖 Generated with Claude Code