Skip to content

Commit

Permalink
chore(deps-dev): bump mypy from 0.942 to 0.950 (#1162)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump mypy from 0.942 to 0.950

Bumps [mypy](https://github.com/python/mypy) from 0.942 to 0.950.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.942...v0.950)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: Added explicit check for None on queue_url

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Simon Thulbourn <[email protected]>
  • Loading branch information
dependabot[bot] and sthulb authored Apr 28, 2022
1 parent 6f434da commit 4ff4f54
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
4 changes: 4 additions & 0 deletions aws_lambda_powertools/utilities/batch/sqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ def _clean(self) -> Optional[List]:
return None

queue_url = self._get_queue_url()
if queue_url is None:
logger.debug("No queue url found")
return None

entries_to_remove = self._get_entries_to_clean()
# Batch delete up to 10 messages at a time (SQS limit)
max_workers = math.ceil(len(entries_to_remove) / self.max_message_batch)
Expand Down
52 changes: 26 additions & 26 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ flake8-eradicate = "^1.2.1"
flake8-bugbear = "^22.1.11"
mkdocs-git-revision-date-plugin = "^0.3.2"
mike = "^0.6.0"
mypy = "^0.942"
mypy = "^0.950"
mkdocs-material = "^8.2.7"


Expand Down

0 comments on commit 4ff4f54

Please sign in to comment.