'How to use typing and intellisense with python aws boto3 package in?

I am using python aws package boto3 but I dont see how I can use typing and code completion with it for example if I create a client:

aws_key_id = os.getenv("AWS_KEY_ID")
aws_access_key = os.getenv("AWS_ACCESS_KEY")
s3_client = boto3.client(
    "s3", aws_access_key_id=aws_key_id, aws_secret_access_key=aws_access_key
)

there is no type returned for the client so then I don't get any hints on which methods the client offers and what arguments they expect.

Is there a way to do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source