Skip to content

Use ShapeID instead of string literal #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025
Merged

Conversation

jonathan343
Copy link
Contributor

Fixes the following type checking errors when trying to build the aws_sdk_bedrock_runtime client:

Projection client failed: software.amazon.smithy.codegen.core.CodegenException: Command `python3 -m pyright .` failed with output:

/Users/gytndd/dev/new-bedrock/build/smithy/client/python-client-codegen/src/aws_sdk_bedrock_runtime/auth.py
  /Users/gytndd/dev/new-bedrock/build/smithy/client/python-client-codegen/src/aws_sdk_bedrock_runtime/auth.py:25:19 - error: Argument of type "Literal['aws.auth#sigv4']" cannot be assigned to parameter "scheme_id" of type "ShapeID" in function "__init__"
    "Literal['aws.auth#sigv4']" is not assignable to "ShapeID" (reportArgumentType)
1 error, 0 warnings, 0 informations 
WARNING: there is a new pyright version available (v1.1.400 -> v1.1.403).
Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest`

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jonathan343 jonathan343 requested a review from a team as a code owner August 13, 2025 18:58
@jonathan343 jonathan343 merged commit 0cbf755 into develop Aug 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants