Skip to content

[Storage] Update typing for queue_client (Queue)#28952

Merged
vincenttran-msft merged 11 commits intoAzure:feature/storage-queue-typingfrom
vincenttran-msft:vincenttran/update_queueclient_typing
Mar 21, 2023
Merged

[Storage] Update typing for queue_client (Queue)#28952
vincenttran-msft merged 11 commits intoAzure:feature/storage-queue-typingfrom
vincenttran-msft:vincenttran/update_queueclient_typing

Conversation

@vincenttran-msft
Copy link
Member

This PR updates queue_client.py and queue_client_async.py to the new typing conventions.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Feb 23, 2023
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-storage-queue

@vincenttran-msft vincenttran-msft changed the base branch from main to feature/storage-queue-typing February 24, 2023 01:33
@vincenttran-msft vincenttran-msft marked this pull request as ready for review March 7, 2023 01:22
Copy link
Member

@jalauzon-msft jalauzon-msft left a comment

Choose a reason for hiding this comment

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

Thanks for taking this one on. Comments should all apply to async as well.

Copy link
Member

@jalauzon-msft jalauzon-msft left a comment

Choose a reason for hiding this comment

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

Looks good! One minor comment

@vincenttran-msft vincenttran-msft merged commit 6b56361 into Azure:feature/storage-queue-typing Mar 21, 2023
@vincenttran-msft vincenttran-msft deleted the vincenttran/update_queueclient_typing branch March 21, 2023 03:24
vincenttran-msft added a commit that referenced this pull request Nov 10, 2023
* [Storage] Update typing for `queue_service_client` (Queue) (#28949)

* qsc done sync&async

* Remove #type ignore, fix dict()

* Fix indents

* Fix indent again :D

* [Storage] Update typing for `queue_client` (Queue) (#28952)

* sync 80% done need *, logic

* First attempt at *,

* Async + unify sync spacing

* Fix CI

* Revert recordings

* PR feedback

* Revert recording, fix indents

* indent, again :D

* Fix content docstring

* [Storage] Update typing for miscellaneous files (queue) (#29173)

* [Storage] `_queue_client.py` mypy fixes (#29736)

* First draft MyPy

* Mypy config fix + just Config Mypy left

* Fully done w/ custom StorageConfiguration

* Pylint

* Double import

* Fix cast

* PR feedback

* Unused imports

* Pylint

* Configuration errors in async BE GONE

* Fix tests that assert against _config

* [Storage] _queue_client_async.py mypy fixes  (#29824)

* Init done for _queue_client

* Fix async calling into sync

* Back to the drawing board

* Finished __init__

* Fix failing tests

* queue_client done and decoupled

* Queue specific files done

* Shared, some base_client leftovers, some model leftovers

* 3 _model 1 response_handlers

* Mypy congrats, time to fight pylint & CI :D

* unused import asyncio

* New PyLint rules fixes

* Pylint 2

* Fix failing test cases

* Be gone test failures

* Finally found root cause of infinite loop

* All encryption tests passing locally, 32 pylint errors remaining

* All tests passing locally, mypy green locally

* Pylint

* Encryption feedback done

* Shared, sample, and lint output left

* More comments addressed, need bc_async, policies, and samples + output

* Just samples, added more helpers

* More feedback

* More fixes

* Lint

* Feedback 2

* CI

* Fix weird invisible unicode char

* No mypy errors hopefully no CI

* Pylint and CI, but now hinting issues

* Fix Lint which should fix CI

* Attempted overload

* Just hanging encryption and message_encoding Qs, fix import ordering

* Addressed encryption feedback

* Feedback, need base client decouple, need CI passing

* Fixing CI

* CI

* CI

* Ignores :(

* More fixes

* CI

* Pylint again

* Adjust typehint

* Try SO workaround 41207128

* Reimport Pylint

* First round of feedback

* Fix CorsRule to_generated method

* Fix PyLint & test failures

* Feedback

* Revert moving out sas token helper, causes circular dependency

* Pylint

* Typing feedback

* Fix CI

* Use QueueMessage ctor

* Pylint

* Privatize CorsRule method

* Disable for protected access

* Flip on mypy

* Missed configuration value parsing

* Double-spaced

* Typo

* Last minute nits

* Extra newline in encryption
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.

3 participants