GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — KMS: Move Tagging Functionality into methods on the Provider by aidehn · Pull Request #13595 · localstack/localstack
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Conversation
|
Test Results - Preflight, Unit23 114 tests ±0 21 255 ✅ ±0 6m 36s ⏱️ +30s Results for commit 42cc595. ± Comparison against base commit 7c60109. ♻️ This comment has been updated with latest results. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
LocalStack Community integration with Pro 2 files 2 suites 5m 9s ⏱️ Results for commit 42cc595. ♻️ This comment has been updated with latest results. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Test Results (amd64) - Acceptance7 tests ±0 5 ✅ ±0 3m 0s ⏱️ -3s Results for commit 42cc595. ± Comparison against base commit 7c60109. ♻️ This comment has been updated with latest results. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 17m 30s ⏱️ Results for commit 42cc595. ♻️ This comment has been updated with latest results. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
247c199 to
494a487
Compare
There was an error while loading. Please reload this page.
494a487 to
fa88094
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fa88094 to
3d9bb51
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| def _set_key_tags(self, key: KmsKey, account_id: str, region: str, tags: TagList) -> None: | ||
| return | ||
|
|
||
| def _remove_key_tags(self, key: KmsKey, account_id: str, region: str, tag_keys: TagKeyList): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| def _remove_key_tags(self, key: KmsKey, account_id: str, region: str, tag_keys: TagKeyList): | |
| def _remove_key_tags(self, key: KmsKey, account_id: str, region: str, tag_keys: TagKeyList) -> None: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if not (tag_keys := request.get("TagKeys", [])): | ||
| return |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Don't use the walrus operator if you intend to use the variable outside the scope of the conditional block.
https://effectivepython.com/2020/02/02/prevent-repetition-with-assignment-expressions
It's not syntactically wrong, but defining the variable outside the conditional block implies that the var is used later.
| if not (tag_keys := request.get("TagKeys", [])): | |
| return | |
| tag_keys = request.get("TagKeys", []) | |
| if not tag_keys: | |
| return |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I have been using the walrus operator a lot in that way, TIL. That makes sense in a way!
Edit: I'm not seeing a mention against using the outside the conditional block, or did I miss it?
Edit2: found this as well: https://news.ycombinator.com/item?id=44584016, and people are generally confused by it, so makes sense! I'll try not to use that anymore 😄
Sorry, something went wrong.
There was an error while loading. Please reload this page.
786fc35 to
dd2d3ef
Compare
dd2d3ef to
42cc595
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.