How do you handle type annotations in the backend classes? #9861
andresliszt
started this conversation in
General
Replies: 1 comment
|
Hi @andresliszt, that sounds right. In general we don't really look at
So in short - the type annotations in the backend classes are only guided by what makes sense, not by what |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I recently submitted a PR #9856. I will take as example the create_event method of Bedrock Agent Core. The argument
clientTokenis optional inboto3but it is autogenerated if not provided This field is autopopulated if not provided.. Therefore in boto3 isclientToken: str | Nonebut in the corresponding backend class isclient_token: str, because backend always expects to get the autogenerated token if it was not provided. Is that true right?All reactions