Skip to content

[Storage] Blob Typing Final Revision #35606

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 54 commits into from
Jul 22, 2024
Merged

Conversation

vincenttran-msft
Copy link
Member

@vincenttran-msft vincenttran-msft commented May 13, 2024

This PR sets out to accomplish the following:

  • Check for passing livetest

  • Address any hanging local MyPy errors
    image

  • Address any hanging requests

This PR should serve as the final verification step before getting APIView approval and moving towards a release 😄

Resolves #32847

vincenttran-msft and others added 22 commits December 4, 2023 15:05
* Initial decouple check CI

* Add helpers from sync to async

* Big move to the helper

* Fix async import

* Fix from_blob_url, Pylint fixes, calls from container_client

* Fix test failureS

* More lint

* Final lint

* Move _format_url out to helpers

* Pylint

* PR feedback, no schema passing, encryption options bag

* Lint + missing _

* Fix encryption options bag not reflective of true values

* Add missing encryption method check

* PR feedback

* line-too-long

* Fix parenthesis
* Draft 1

* Typo

* Give async from_connection_string
* Decouple container_client

* Pylint

* Build generated client seperately (sync vs. async generated class)

* Fix passing blobs for batch

* Lint again.

* PR feedback

* Move out unsupported encryption to encryption file

* Add back in blob_client helper for generic_delete_blob_options

* Fix parenthesis

* Fix too many args by not naming
…er.py` and `_shared_access_signature.py` and `_list_blob_helpers.py` (#33628)
* First draft

* Fix import

* Fix isinstance BlobProperties logic

* Fix empty AsyncIterator returning sync iterator

* Linter
* Fix blob samples typing

* Lint

* Fix indent
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label May 13, 2024
@vincenttran-msft vincenttran-msft added Do Not Merge Storage Storage Service (Queues, Blobs, Files) and removed Storage Storage Service (Queues, Blobs, Files) labels May 13, 2024
@vincenttran-msft
Copy link
Member Author

/azp run python - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vincenttran-msft
Copy link
Member Author

/azp run python - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vincenttran-msft
Copy link
Member Author

/azp run python - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vincenttran-msft
Copy link
Member Author

/azp run python - storage - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vincenttran-msft vincenttran-msft merged commit cb47de5 into main Jul 22, 2024
20 checks passed
@vincenttran-msft vincenttran-msft deleted the feature/storage-blob-typing2 branch July 22, 2024 20:54
Comment on lines -200 to -204
def _format_url(self, hostname):
container_name = self.container_name
if isinstance(container_name, str):
container_name = container_name.encode('UTF-8')
return f"{self.scheme}://{hostname}/{quote(container_name)}/{quote(self.blob_name, safe='~/')}{self._query_str}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original implementation here
Only difference when moved to helper, we don't have access to self.blob_name or self.scheme, so we must pass it in.

l0lawrence pushed a commit to l0lawrence/azure-sdk-for-python that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azure-storage-blob needs typing updates for mypy version 1.10.1
3 participants