mirror of
https://github.com/beshu-tech/deltaglider.git
synced 2026-03-17 23:13:43 +01:00
Add comprehensive TypedDict definitions for all boto3 S3 response types. This provides full type safety without requiring boto3 imports in user code. Benefits: - ✅ Type safety: IDE autocomplete and mypy type checking - ✅ No boto3 dependency: Just typing module (stdlib) - ✅ Runtime compatibility: TypedDict compiles to plain dict - ✅ Drop-in replacement: Exact same structure as boto3 responses Types added: - ListObjectsV2Response, S3Object, CommonPrefix - PutObjectResponse, GetObjectResponse, DeleteObjectResponse - HeadObjectResponse, DeleteObjectsResponse - ListBucketsResponse, CreateBucketResponse, CopyObjectResponse - ResponseMetadata, and more Next step: Refactor client methods to return these dicts instead of custom dataclasses (ListObjectsResponse, ObjectInfo, etc.) Example usage: ```python from deltaglider import ListObjectsV2Response, create_client client = create_client() response: ListObjectsV2Response = client.list_objects(Bucket='my-bucket') for obj in response['Contents']: print(f"{obj['Key']}: {obj['Size']} bytes") # Full autocomplete! ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>