talkiq / gcloud-aio

(Asyncio OR Threadsafe) Google Cloud Client Library for Python
https://talkiq.github.io/gcloud-aio
275 stars 91 forks source link

`gcloud.aio.storage.blob.Blob.update` corrupts the `Blob` object #682

Open aucampia opened 8 months ago

aucampia commented 8 months ago

When uploading, the blob object's bucket attribute changes from a value of type gcloud.aio.storage.Bucket to str as it is overwritten by the string returned from GCP:

https://github.com/talkiq/gcloud-aio/blob/75046bff4bfd3953be1939a5131e1b6afd415852/storage/gcloud/aio/storage/blob.py#L123