Skip to content

Commit a945715

Browse files
chore(deps-dev): bump ruff from 0.0.278 to 0.0.279 (#2822)
* chore(deps-dev): bump ruff from 0.0.278 to 0.0.279 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.278 to 0.0.279. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.278...v0.0.279) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * ruff: fixing PLR1714 error --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]>
1 parent 1b4191d commit a945715

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

aws_lambda_powertools/utilities/batch/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def _process_record(self, record: dict) -> Union[SuccessResponse, FailureRespons
511511
model = getattr(exc, "model", None) or getattr(exc, "title", None)
512512
model_name = getattr(self.model, "__name__", None)
513513

514-
if model == self.model or model == model_name:
514+
if model in (self.model, model_name):
515515
return self._register_model_validation_error_record(record)
516516

517517
return self.failure_handler(record=data, exception=sys.exc_info())
@@ -660,7 +660,7 @@ async def _async_process_record(self, record: dict) -> Union[SuccessResponse, Fa
660660
model = getattr(exc, "model", None) or getattr(exc, "title", None)
661661
model_name = getattr(self.model, "__name__", None)
662662

663-
if model == self.model or model == model_name:
663+
if model in (self.model, model_name):
664664
return self._register_model_validation_error_record(record)
665665

666666
return self.failure_handler(record=data, exception=sys.exc_info())

poetry.lock

+19-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ mypy = "^1.1.1"
9191
types-python-dateutil = "^2.8.19.6"
9292
httpx = ">=0.23.3,<0.25.0"
9393
sentry-sdk = "^1.22.2"
94-
ruff = ">=0.0.272,<0.0.279"
94+
ruff = ">=0.0.272,<0.0.280"
9595
retry2 = "^0.9.5"
9696

9797
[tool.coverage.run]

0 commit comments

Comments
 (0)